module.exports={ entry:'./main/main.js', output:{ path:'./build', filename:'bundle.js' }, module:{ loaders: [ {test: /\.coffee$/, loader: 'coffee--loader'}, {test: /\.less$/, loader: 'style-loader!css-loader!less-loader'}, // use ! to chain loaders {test: /\.css$/, loader: 'style-loader!css-loader'}, {test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192'} // i ] } , resolve:{ extensions:["",".js",".json","coffee"] } };
$ npm install style-loader css-loader url-loader babel-loader sass-loader file-loader --save-dev