Created
April 20, 2017 15:56
-
-
Save 1415926535/b802261cac9dac9c8576a5d7da76611a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
// var purify = require('purifycss-webpack-plugin'); | |
module.exports = { | |
entry: './src/main.js', | |
output: { | |
path: __dirname + '/public', //NOTE CHANGE | |
filename: 'bundle.js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.scss$/, | |
loader: ExtractTextPlugin.extract('css-loader!sass-loader') //NOTE CHANGE | |
} | |
] | |
}, | |
plugins: [ | |
new ExtractTextPlugin('./css/bootstrap.css'), | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment