Sha256: fb4b2d5ae012b6690e979e7973b68e0d58f9cf8465b73d26096a1aa0a312a54e

Contents?: true

Size: 577 Bytes

Versions: 3

Compression:

Stored size: 577 Bytes

Contents

const path = require('path');

const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
  mode: 'production',
  entry: path.resolve(__dirname, 'frontend/js/index.js'),
  output: {
    filename: 'tinymce.js',
    path: path.resolve(__dirname, 'app/assets/bundle/trestle')
  },
  optimization: {
    minimizer: [
      new TerserPlugin({
        extractComments: false
      })
    ]
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: [
          { loader: 'babel-loader' }
        ]
      }
    ]
  }
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-tinymce-0.4.0 webpack.config.js
trestle-tinymce-0.4.0.pre2 webpack.config.js
trestle-tinymce-0.4.0.pre webpack.config.js