Minerva/webpack.config.js

23 lines
516 B
JavaScript
Raw Normal View History

2024-02-17 23:27:52 +00:00
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
module.exports = {
entry: './index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
clean: true
},
plugins: [new HtmlWebpackPlugin()],
module: {
rules: [
{
test: /\.(scss|css)$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
}
]
},
devServer: {
port: 3000
}
}