Files
Grav-Admin-Plugin/themes/grav/webpack.conf.js

50 lines
1.1 KiB
JavaScript
Raw Normal View History

2016-02-01 11:27:34 -08:00
var path = require('path'),
webpack = require('webpack');
module.exports = {
entry: {
app: './app/main.js',
vendor: [
2016-02-26 15:54:06 -08:00
'codemirror',
2016-02-01 11:27:34 -08:00
'chartist',
'selectize',
'remodal',
'toastr',
'bootstrap',
'sortablejs',
'jquery-slugify',
'dropzone',
'eonasdan-bootstrap-datetimepicker'
]
},
output: {
path: path.resolve(__dirname, 'js'),
library: 'Grav'
},
externals: {
jquery: 'jQuery',
'grav-config': 'GravAdmin'
},
module: {
preLoaders: [
2016-02-18 15:48:35 -08:00
{
test: /\.json$/,
loader: 'json'
},
2016-02-01 11:27:34 -08:00
{
test: /\.js$/,
loader: 'eslint',
exclude: /node_modules/
}
],
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/,
query: { presets: ['es2015'] }
}
]
}
};