2017-06-30 14:38:30 -06:00
|
|
|
const path = require('path'),
|
|
|
|
webpack = require('webpack');
|
2017-06-23 11:00:42 -06:00
|
|
|
|
|
|
|
module.exports = {
|
2017-06-30 14:38:30 -06:00
|
|
|
|
|
|
|
// Javascript files to be bundled
|
2017-06-23 12:33:17 -06:00
|
|
|
entry: {
|
2017-06-30 14:38:30 -06:00
|
|
|
base: './static/js/base.js',
|
2017-06-30 13:03:43 -06:00
|
|
|
header: './static/js/header.js',
|
|
|
|
footer: './static/js/footer.js',
|
2017-06-30 14:38:30 -06:00
|
|
|
index: './static/js/index.js',
|
|
|
|
table: './static/js/table.js',
|
|
|
|
form: './static/js/form.js',
|
|
|
|
contact: './static/js/contact.js',
|
|
|
|
login: './static/js/login.js',
|
2017-06-30 13:03:43 -06:00
|
|
|
map: './static/js/map.js',
|
2017-06-30 14:38:30 -06:00
|
|
|
controls: './static/js/controls.js',
|
2017-06-30 13:03:43 -06:00
|
|
|
settings: './static/js/settings.js',
|
|
|
|
password: './static/js/password.js'
|
2017-06-23 12:33:17 -06:00
|
|
|
},
|
2017-06-30 14:38:30 -06:00
|
|
|
|
|
|
|
// Output format
|
2017-06-23 11:00:42 -06:00
|
|
|
output: {
|
2017-06-30 13:03:43 -06:00
|
|
|
filename: '.[name].bun.js',
|
|
|
|
path: path.resolve(__dirname, 'static/js')
|
2017-06-30 14:38:30 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
// Optimization
|
|
|
|
// plugins: [
|
|
|
|
// new webpack.optimize.UglifyJsPlugin({minimize: true})
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// Load CSS into bundles
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [ 'style-loader', 'css-loader' ]
|
|
|
|
}
|
|
|
|
]
|
2017-06-23 11:00:42 -06:00
|
|
|
}
|
2017-06-30 14:38:30 -06:00
|
|
|
|
2017-06-23 11:00:42 -06:00
|
|
|
};
|