Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const MiniCssExtractPlugin = require("mini-css-extract-plugin");
- module.exports = {
- mode: 'production',
- entry: './catalog/view/theme/default/sas/common.scss',
- plugins: [
- new MiniCssExtractPlugin({
- // Options similar to the same options in webpackOptions.output
- // both options are optional
- filename: "./catalog/view/theme/default/stylesheet/stylesheet.css",
- })
- ],
- module: {
- rules: [
- {
- test: /.scss$/,
- use: [
- MiniCssExtractPlugin.loader,
- {
- loader: "css-loader",
- options: {
- modules: true,
- sourceMap: true,
- importLoader: 2
- }
- },
- 'postcss-loader',
- "sass-loader"
- ],
- }
- ]
- }
- ,
- watch: true,
- }
Add Comment
Please, Sign In to add comment