Css-loader: Module build failed: Unknown word

Created on 23 Sep 2016  路  3Comments  路  Source: webpack-contrib/css-loader

Trying to use the style-loader and css-loader.

ERROR in ./app/main.css
Module build failed: Unknown word

My webpack.config.js file:

module.exports={
devtool:'eval-source-map',
entry:__dirname+'/app/main.js',
output:{
path:__dirname+'/public',
filename:'bundle.js'
},
module:{
loaders:[
{
test:/.json$/,
loader:'json-loader'
},
{
test:/.js$/,
exclude:/node_modules/,
loader:'babel',
query:{
presets:['es2015']
}
},
{
test:/.css$/,
loader:'css-loader!style-loader!sass-loader'
}
]
},
devServer:{
contentBase: './public',
colors:true,
historyApiFallback:true,
inline:true
}
};

Where is the problem?
Regards

Most helpful comment

@cuiyue

{
   test:/.css$/,
-   loader:'css-loader!style-loader!sass-loader'
+   loader: 'style-loader!css-loader?importLoaders=1!sass-loader'
}

All 3 comments

Same here

@cuiyue

{
   test:/.css$/,
-   loader:'css-loader!style-loader!sass-loader'
+   loader: 'style-loader!css-loader?importLoaders=1!sass-loader'
}

@cuiyue Thank you thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmiller9911 picture dmiller9911  路  3Comments

osenvosem picture osenvosem  路  4Comments

kcjonson picture kcjonson  路  3Comments

jonathanong picture jonathanong  路  3Comments

danielgomonea picture danielgomonea  路  3Comments