rpncalc/webpack.config.js
2017-08-17 12:03:15 +01:00

31 lines
479 B
JavaScript

var path = require("path");
module.exports = {
entry: {
app: [
'./src/index.js'
]
},
output: {
path: path.resolve(__dirname + '/dist'),
filename: '[name].js',
},
module: {
rules: [
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
loader: 'elm-webpack-loader?verbose=true&warn=true',
}
],
noParse: /\.elm$/,
},
devServer: {
inline: true,
stats: { colors: true },
},
};