Sha256: 56b714ac0b86d722c72f3d6eaa27f2acdf129a6559af86653f048e145b8529c0

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

// Note: You must restart bin/webpack-watcher for changes to take effect

const webpack = require('webpack')
const merge = require('webpack-merge')
const CompressionPlugin = require('compression-webpack-plugin')

const sharedConfig = require('./shared.js')

module.exports = merge(sharedConfig.config, {
  output: { filename: '[name]-[chunkhash].js' },

  plugins: [
    new webpack.LoaderOptionsPlugin({
      minimize: true
    }),
    new webpack.optimize.UglifyJsPlugin(),
    new CompressionPlugin({
      asset: '[path].gz[query]',
      algorithm: 'gzip',
      test: /\.js$/
    })
  ]
})

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
railman-1.0.3 templates/rails_app/config/webpack/production.js
railman-1.0.2 templates/rails_app/config/webpack/production.js
railman-1.0.1 templates/rails_app/config/webpack/production.js
railman-1.0.0 templates/rails_app/config/webpack/production.js