feat: add themes source (#1089)
This commit is contained in:
34
packages/components/theme.webpack.config.js
Normal file
34
packages/components/theme.webpack.config.js
Normal 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(),
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user