Skip to content

Instantly share code, notes, and snippets.

@yepstepz
Created July 3, 2017 09:18
Show Gist options
  • Save yepstepz/46e7f6471386153fdeb6658cef66d0f8 to your computer and use it in GitHub Desktop.
Save yepstepz/46e7f6471386153fdeb6658cef66d0f8 to your computer and use it in GitHub Desktop.
webpack.config.js
var ExtractTextPlugin = require("extract-text-webpack-plugin");
const path = require('path');
module.exports = {
entry: [
'./index.js'
],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
module: {
loaders: [
{
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.scss$/,
loaders: [ 'style-loader', 'css-loader', 'sass-loader' ]
}
// {
// test: /\.scss$/,
// loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader!sass-loader' })
// }
],
},
plugins: [
//new ExtractTextPlugin("src/css/style.css")
],
resolve: {
extensions: ['.js', '.jsx', '.css']
},
devServer: { inline: true },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment