Created
March 1, 2017 20:52
-
-
Save jimmiehansson/92c1737d904c4d6bfcbda8dce74ec104 to your computer and use it in GitHub Desktop.
This file contains 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'); | |
module.exports = { | |
entry: { | |
app: ['webpack/hot/dev-server', './javascripts/entry.js'], | |
}, | |
output: { | |
path: '/public/built', | |
filename: 'bundle.js', | |
publicPath: 'http://localhost:8080/built/' | |
}, | |
devServer: { | |
contentBase: '/public', | |
publicPath: 'http://localhost:8080/built/' | |
}, | |
module: { | |
loaders: [ | |
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }, | |
{ test: /\.css$/, loader: 'style-loader!css-loader' }, | |
{ test: /\.less$/, loader: 'style-loader!css-loader!less-loader'} | |
] | |
}, | |
plugins: [ | |
new webpack.HotModuleReplacementPlugin() | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment