aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack.prod.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-30 22:44:55 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-30 23:09:33 +0200
commit815b190d28cc42e6f3d44d04e1f1ebaea9208cf6 (patch)
tree0d3f0133a39a4a796e698d360dc32f54fb41d8ad /config/webpack.prod.js
parent3a3baddad1c801d77dc398d2c6980f3c14f4a47c (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.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()],
-};