jsketcher/webpack.config.js
2016-11-11 18:45:55 -08:00

37 lines
741 B
JavaScript

const path = require('path');
const webpack = require('webpack');
module.exports = {
devtool: 'source-map',
entry: {
index: ['./web/app/index'],
sketcher: ['./web/app/sketcher']
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].bundle.js',
chunkFilename: '[id].bundle.js',
publicPath: '/static/'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
],
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel'],
include: path.join(__dirname, 'web/app')
}, {
test: /\.css$/,
loader: 'style!css'
},
{
test: /\.less$/,
loader: "style!css?-url!less"
},
{
test: /\.html$/,
loader: 'mustache'
}]
}
};