Files
standardnotes-app-web/packages/components/theme.webpack.config.js
2022-06-11 16:34:13 -05:00

35 lines
716 B
JavaScript

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(),
],
};