When using Webpack, I encountered the errors below. Despite the build appearing to be successful, I am still puzzled as to why these errors are occurring.
WARNING in ./{snip}/readme.md Module parse failed: C:{snip}\readme.md Unexpected token (1:7) You may need an appropriate loader to handle this file type.
I have been unable to find a solution to ignore certain files, and the fact that it is attempting to render these specific files remains a mystery to me.
Below are snippets from my webpack settings file:
module: {
loaders: [
{test: /\.hb.html$/, loader: "handlebars-loader/?helperDirs[]=" + __dirname + "/src/handlebarsHelpers"},
{ test: /\.tsx?$/, loader: "ts-loader?" + JSON.stringify({
transpileOnly: true
})}
]
},
Entry:
entry: "./src/entry.ts",
Additionally,
resolve: {
extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"],
I attempted to exclude .md files in the typescript configuration file without success.