39 lines
733 B
JavaScript
39 lines
733 B
JavaScript
|
var webpack = require('webpack'),
|
||
|
path = require('path')
|
||
|
|
||
|
module.exports = {
|
||
|
devtool: 'cheap-module-source-map',
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
Engine: path.resolve('source/engine/'),
|
||
|
Règles: path.resolve('règles/'),
|
||
|
Components: path.resolve('source/components/')
|
||
|
}
|
||
|
},
|
||
|
module: {
|
||
|
loaders: [ {// slow : ~ 1s
|
||
|
test: /\.css$/,
|
||
|
loader: 'ignore-loader'
|
||
|
}, {
|
||
|
test: /\.html$/,
|
||
|
loader: 'ignore-loader'
|
||
|
},
|
||
|
{
|
||
|
test: /\.yaml$/,
|
||
|
loader: 'json-loader!yaml-loader'
|
||
|
},
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
loader: 'babel-loader'
|
||
|
},
|
||
|
{ //slow : ~ 3 seconds
|
||
|
test: /\.(jpe?g|png|gif|svg)$/i,
|
||
|
loader: 'ignore-loader'
|
||
|
}, {
|
||
|
test: /\.ne$/,
|
||
|
loader: 'babel-loader!nearley-loader'
|
||
|
}]
|
||
|
}
|
||
|
}
|