react-code-dataset / reactjs_koans /webpack.config.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
624 Bytes
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:9090',
'webpack/hot/only-dev-server',
'./exercises/main'
],
output: {
path: __dirname + '/build/',
filename: 'app.js',
publicPath: 'http://localhost:9090/build/'
},
module: {
loaders: [
{ test: path.join(__dirname, 'exercises'), loaders: ['react-hot', 'babel-loader']}
]
},
resolve: {
extensions: ['', '.js', '.jsx']
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
]
}