1.1.18 • Published 11 months ago
@pieced/js-config-webpack-plugin v1.1.18
Automatically configuration webpack5 js loader
Install
npm i --save-dev @pieced/js-config-webpack-pluginWebpack Config
const JsConfigWebpackPlugin = require('@pieced/js-config-webpack-plugin');
module.exports = {
plugins: [new JsConfigWebpackPlugin()],
};Options
suffix
type arraydefault ['js', 'jsx', 'mjs']
filename
type string function (pathData, assetInfo) => string- output.filename
- default
webpack.mode === 'development' ? '[name].js' : 'static/js/[contenthash:10].js'chunkFilename
type string function (pathData, assetInfo) => string- output.chunkFilename
- default
webpack.mode === 'development' ? '[name].js' : 'static/js/[contenthash:10].js'terser
type object- terser-webpack-plugin options
- default
const defaultTerser = {
extractComments: false,
terserOptions: {
output: {
comments: false,
},
compress: {
drop_debugger: true,
drop_console: true,
},
},
}1.1.1
1 year ago
1.1.0
1 year ago
1.1.9
1 year ago
1.1.8
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.2
1 year ago
1.1.15-beta.0
1 year ago
1.1.12
1 year ago
1.1.11
1 year ago
1.1.10
1 year ago
1.1.16
12 months ago
1.1.15
1 year ago
1.1.14
1 year ago
1.1.13
1 year ago
1.1.18
11 months ago
1.1.17
12 months ago
1.0.2
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago