Current section
Files
Jump to
Current section
Files
lib/templates/webpack.config.js
module.exports = {
entry: './web/static/js/app.js',
output: {
path: './priv/static/js',
filename: 'app.js'
},
module: {
noParse: /vendor\/phoenix/,
loaders: [
{
test: /\.scss$/,
loader: 'style!css!sass?sourceMap'
},
{
test: /\.js?$/,
exclude: /(node_modules|bower_components)/,
include: /web\/static/,
loader: 'babel'
}
]
},
resolve: {
extensions: ['', '.js', '.json'],
modulesDirectories: ['node_modules', './web/static/vendor']
}
};