Skip to content

Instantly share code, notes, and snippets.

@1415926535
Created April 20, 2017 15:56
Show Gist options
  • Save 1415926535/b802261cac9dac9c8576a5d7da76611a to your computer and use it in GitHub Desktop.
Save 1415926535/b802261cac9dac9c8576a5d7da76611a to your computer and use it in GitHub Desktop.
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