Sha256: 6d4c59f30aaa6fd4330b507423a89f2079c0feeeb9605c8786d68abfd919aab6

Contents?: true

Size: 624 Bytes

Versions: 5

Compression:

Stored size: 624 Bytes

Contents

const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const merge = require('webpack-merge')
const baseConfig = require('./base.config.js')

const env = 'production'

module.exports = merge(baseConfig, {
  mode: env,
  plugins: [
    new OptimizeCssAssetsPlugin({
      filename: '[name].css',
      chunkFilename: '[id].css',
      cssProcessorPluginOptions: {
        preset: [
          'default',
          {
            discardComments: {
              removeAll: true
            }
          }
        ]
      }
    })
  ],
  optimization: {
    splitChunks: {
      chunks: 'all'
    }
  }
})

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
frontman-ssg-0.1.1 project-templates/webpack/webpack/prod.config.js
frontman-ssg-0.1.0 project-templates/webpack/webpack/prod.config.js
frontman-ssg-0.0.4 project-templates/webpack/webpack/prod.config.js
frontman-ssg-0.0.3 project-templates/webpack/webpack/prod.config.js
frontman-ssg-0.0.2 project-templates/webpack/webpack/prod.config.js