1
0
Fork 0
VaultUI/webpack.config.js

31 lines
747 B
JavaScript
Raw Normal View History

2021-04-15 13:01:58 +01:00
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode: process.env.WEBPACK_MODE || "production",
entry: './src/main.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
},
plugins: [new MiniCssExtractPlugin(), new HtmlWebpackPlugin({ title: "VaultUI" })],
devServer: {
2021-04-15 13:09:03 +01:00
open: process.env.BROWSER || "microsoft-edge-dev",
2021-04-15 13:01:58 +01:00
},
resolve: {
modules: ['node_modules'],
},
module: {
rules: [
{
test: /\.(sa|sc|c)ss$/,
use: [
2021-04-18 11:28:55 +01:00
MiniCssExtractPlugin.loader,
"css-loader",
"sass-loader"
2021-04-15 13:01:58 +01:00
],
2021-04-18 11:28:55 +01:00
},
2021-04-15 13:01:58 +01:00
],
},
};