2019-05-08 09:54:41 +01:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
|
|
|
zulma_navbar: './src/zulma_navbar.js',
|
|
|
|
zulma_search: './src/zulma_search.js',
|
|
|
|
zulma_switchcss: './src/zulma_switchcss.js'
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
filename: '[name].js',
|
|
|
|
path: path.resolve('../static/js')
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
2019-05-08 12:04:57 +01:00
|
|
|
use: ["babel-loader", "eslint-loader"]
|
2019-05-08 09:54:41 +01:00
|
|
|
}]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['*', '.js']
|
|
|
|
},
|
|
|
|
stats: {
|
|
|
|
colors: true
|
|
|
|
},
|
|
|
|
devtool: 'source-map',
|
|
|
|
mode: 'production',
|
|
|
|
};
|