mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 08:25:19 +01:00
37 lines
741 B
JavaScript
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'
|
|
}]
|
|
}
|
|
};
|