Created
July 3, 2017 09:18
-
-
Save yepstepz/46e7f6471386153fdeb6658cef66d0f8 to your computer and use it in GitHub Desktop.
webpack.config.js
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 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