We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No TypeScript Error reported.
import { argv } from 'yargs'; import { BannerPlugin, Configuration } from 'webpack'; import { merge } from 'webpack-merge'; import TerserPlugin from 'terser-webpack-plugin'; import SpeedMeasurePlugin from 'speed-measure-webpack-plugin'; import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; import commonWebpackConfig from './webpack.common'; const mergedConfiguration: Configuration = merge(commonWebpackConfig, { mode: 'production', plugins: [ new BannerPlugin({ banner: '/** @preserve powered by vscode-extension-boilerplate(https://github.com/tjx666/vscode-extension-boilerplate) */', raw: true, }), ], optimization: { minimize: true, minimizer: [ new TerserPlugin({ cache: true, parallel: true, extractComments: false, }), ], }, }); // eslint-disable-next-line import/no-mutable-exports let prodWebpackConfiguration = mergedConfiguration; if (argv.analyze) { mergedConfiguration.plugins!.push(new BundleAnalyzerPlugin()); const smp = new SpeedMeasurePlugin(); prodWebpackConfiguration = smp.wrap(mergedConfiguration); } export default prodWebpackConfiguration;
Project Address: vscode-extension-boilerplate
The text was updated successfully, but these errors were encountered:
Not related to terser-webpack-plugin, we don't have types
terser-webpack-plugin
Sorry, something went wrong.
You need to wait updating @types
@types
Specifically this DefinitelyTyped/DefinitelyTyped#48806
If do you use Webpack 5, you don't need the terser-webpack-plugin. https://webpack.js.org/plugins/terser-webpack-plugin/
如果您使用 Webpack 5,则不需要 terser-webpack-plugin。 https://webpack.js.org/plugins/terser-webpack-plugin/
I need to update the terser options
No branches or pull requests
Expected Behavior
No TypeScript Error reported.
Actual Behavior
Code
How Do We Reproduce?
Project Address: vscode-extension-boilerplate
The text was updated successfully, but these errors were encountered: