feat: add themes source (#1089)

This commit is contained in:
Johnny A
2022-06-11 17:34:13 -04:00
committed by GitHub
parent d162cf87fc
commit e80eb441a7
28 changed files with 571 additions and 717 deletions

View File

@@ -0,0 +1,34 @@
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts');
module.exports = {
mode: 'production',
output: {},
module: {
rules: [
{
test: /\.s[ac]ss$/i,
exclude: /(node_modules)/,
use: [
{
loader: MiniCssExtractPlugin.loader,
},
{
loader: 'css-loader',
options: {
sourceMap: false,
url: false,
},
},
'sass-loader',
],
},
],
},
plugins: [
new MiniCssExtractPlugin({
filename: "dist.css"
}),
new RemoveEmptyScriptsPlugin(),
],
};