Open dKab opened 8 years ago
Can you have multiple blocks for the same rules? For instance, you have two blocks testing for /\.css$/
and they have different loaders.
Also, I don't think you have the ExtractTextPlugin
setup correctly. Shouldn't there be an entry in the plugins
block.
This can go right after you require
the plugin:
var extractCSS = new ExtractTextPlugin('stylesheets/main.css')
and then in your module block for css
files:
{
test: /\.css$/,
loader: extractCSS.extract(['style', 'css!sourceMap'])
}
and then in the plugins
block:
plugins: [
extractCSS,
...
...
]
50% 2/3 build modulesModuleParseError: Module parse failed: /home/dmitriy/projects/angular-quickstart/node_modules/angular2-template-loader/index.js!/home/dmitriy/projects/angular-quickstart/src/app/app.component.ts Unexpected character '@' (5:0) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected character '@' (5:0)
Here's the file that I'm trying to process:
webpack.config :