aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack.prod.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack.prod.js')
-rw-r--r--config/webpack.prod.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/config/webpack.prod.js b/config/webpack.prod.js
deleted file mode 100644
index a2778f5..0000000
--- a/config/webpack.prod.js
+++ /dev/null
@@ -1,48 +0,0 @@
-const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
-const MiniCssExtractPlugin = require('mini-css-extract-plugin');
-const dartSass = require('sass');
-const paths = require('./paths');
-
-module.exports = {
- mode: 'production',
- devtool: false,
- optimization: {
- minimizer: [new CssMinimizerPlugin(), '...'],
- },
- module: {
- rules: [
- {
- test: /\.(sa|sc|c)ss$/i,
- use: [
- {
- loader: MiniCssExtractPlugin.loader,
- options: {
- publicPath: '../',
- },
- },
- 'css-loader',
- {
- loader: 'postcss-loader',
- options: {
- postcssOptions: {
- plugins: ['autoprefixer'],
- },
- },
- },
- {
- loader: 'sass-loader',
- options: {
- implementation: dartSass,
- sassOptions: {
- indentWidth: 2,
- outputStyle: 'compressed',
- includePaths: paths.sassPaths,
- },
- },
- },
- ],
- },
- ],
- },
- plugins: [new MiniCssExtractPlugin()],
-};