lepisi-pengumuman/webpack.config.js

28 lines
599 B
JavaScript

const path = require('path')
const CleanWebpackPlugin = require('clean-webpack-plugin')
module.exports = {
entry: {
index: './assets/js/index.js',
landing: './assets/js/landing.js'
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'public/js')
},
plugins: [
new CleanWebpackPlugin(['public/js'])
],
module: {
rules: [
{
test: /\.css$/,
use: [
'style-loader',
'css-loader'
]
}
]
}
}