diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-10-30 22:44:55 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-10-30 23:09:33 +0200 |
| commit | 815b190d28cc42e6f3d44d04e1f1ebaea9208cf6 (patch) | |
| tree | 0d3f0133a39a4a796e698d360dc32f54fb41d8ad /config/webpack.prod.js | |
| parent | 3a3baddad1c801d77dc398d2c6980f3c14f4a47c (diff) | |
chore: convert html files to php
Now I can use php to determine current env and load static CSS file if
it is prod.
Diffstat (limited to 'config/webpack.prod.js')
| -rw-r--r-- | config/webpack.prod.js | 48 |
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()], -}; |
