Browse Source

Update webpack config

pull/4487/head
Artur Arseniev 4 years ago
parent
commit
9e38995591
  1. 13
      webpack.config.js

13
webpack.config.js

@ -1,7 +1,6 @@
import path from 'path';
import webpack from 'webpack';
import pkg from './package.json';
import TerserPlugin from 'terser-webpack-plugin';
const rootDir = path.resolve(__dirname);
@ -12,18 +11,6 @@ export default ({ config }) => ({
filename: 'grapes.min.js',
libraryExport: 'default',
},
optimization: {
minimizer: [new TerserPlugin({
extractComments: false,
terserOptions: {
output: {
comments: false,
quote_style: 3, // Preserve original quotes
preamble: `/*! grapesjs - ${pkg.version} */`,
}
}
})],
},
devServer: {
...config.devServer,
static: [rootDir],

Loading…
Cancel
Save