Webpack throws errors shown below. The build seems to work, still, what gives?
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 could not find any way to ignore files. I don't even know why it is trying to render those files.
Here are some parts of 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",
and
resolve: {
extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"],
I tried excluding .md files in typescript config file, also didn't work.