Zulma-Theme/javascript/webpack.config.js

28 lines
625 B
JavaScript
Raw Permalink Normal View History

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"]
}]
},
resolve: {
extensions: ['*', '.js']
},
stats: {
colors: true
},
devtool: 'source-map',
mode: 'production',
};