Files
Grav-Admin-Plugin/themes/grav/webpack.conf.js
Ole Vik b0dff58c45 Improve range-field (#1016)
* Improve range-field

Adds some JS (2.04 KB), SCSS (6.87 KB), and changed Twig to improve the functionality and styling of the range-field.

* Gulp build

* Fix range-field step

* Rangetouch to webpack, gulp rebuild

* Recompile from gulp

* Compliance for nested fields.

Replaces dots with underscores for id-attributes within the field.
2017-03-18 13:52:57 -06:00

42 lines
1.0 KiB
JavaScript
Vendored

var path = require('path'),
webpack = require('webpack');
module.exports = {
entry: {
app: './app/main.js',
vendor: [
'codemirror',
'chartist',
'selectize',
'rangetouch',
'remodal',
'toastr',
'bootstrap',
'sortablejs',
'dropzone',
'eonasdan-bootstrap-datetimepicker',
'watchjs',
'js-yaml',
'speakingurl'
]
},
output: {
path: path.resolve(__dirname, 'js'),
library: 'Grav'
},
externals: {
jquery: 'jQuery',
'grav-config': 'GravAdmin'
},
module: {
preLoaders: [
{ test: /\.json$/, loader: 'json' },
{ test: /\.js$/, loader: 'eslint', exclude: /node_modules/ }
],
loaders: [
{ test: /\.css$/, loader: "style-loader!css-loader" },
{ test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: { presets: ['es2015', 'stage-3'] } }
]
}
};