1.1.18 • Published 5 months ago

@pieced/js-config-webpack-plugin v1.1.18

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Automatically configuration webpack5 js loader

Install

npm i --save-dev @pieced/js-config-webpack-plugin

Webpack Config

const JsConfigWebpackPlugin = require('@pieced/js-config-webpack-plugin');
module.exports = {
  plugins: [new JsConfigWebpackPlugin()],
};

Options

suffix

  • type array
  • default ['js', 'jsx', 'mjs']

filename

webpack.mode === 'development' ? '[name].js' : 'static/js/[contenthash:10].js'

chunkFilename

webpack.mode === 'development' ? '[name].js' : 'static/js/[contenthash:10].js'

terser

const defaultTerser = {
  extractComments: false,
  terserOptions: {
    output: {
      comments: false,
    },
    compress: {
      drop_debugger: true,
      drop_console: true,
    },
  },
}
1.1.1

7 months ago

1.1.0

7 months ago

1.1.9

7 months ago

1.1.8

7 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.15-beta.0

7 months ago

1.1.12

7 months ago

1.1.11

7 months ago

1.1.10

7 months ago

1.1.16

6 months ago

1.1.15

7 months ago

1.1.14

7 months ago

1.1.13

7 months ago

1.1.18

5 months ago

1.1.17

6 months ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago