@electrojet/core
Version:
Build scripts for use with create-electrojet
30 lines (27 loc) • 552 B
JavaScript
const HtmlWebpackPlugin = require('html-webpack-plugin');
const commonPaths = require('./common-paths');
module.exports = {
entry: commonPaths.appSrc,
output: {
filename: 'bundle.js',
path: commonPaths.appDist,
},
module: {
rules: [
{
test: /\.(jpe?g|png|gif|svg|eot|ttf|woff|woff2)$/i,
exclude: /\.(ejs)$/i,
use: [
{
loader: 'file-loader',
},
],
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: commonPaths.index,
}),
],
};