webpack-factory-config
v0.1.18
Published
This basic webpack config.
Downloads
18
Readme
webpack-factory-config
This basic webpack config.
Options
| Name | Type | Required | Default | Description | Example |
|--------------|---------|----------|-------------------------------------------|---------------------------------------------------------------------------------------|----------|
| tsConfig | String | true | | The path to the "tsconfig.json" file. | |
| srcApp | String | true | | Path to the directory with the project code. | ./src
|
| indexApp | String | true | | The path to the index file of the application. | |
| indexHtml | String | true | | Path to index.html file. | |
| outputPath | String | true | | Path to directory with output files. | ./dist
|
| publicPath | String | false | | | |
| assetsPath | String | false | | The path to the directory with static resource files. Will be copied to outputPath
. | |
| mode | String | false | process.env.NODE_ENV \|\| 'development'
| Build mode. development
or production
| |
| useSourceMap | Boolean | false | false | Generate source maps | |
This configuration includes
| Package | Version | |--------------------|---------| | webpack | 5.33 | | typescript | 4.2 | | webpack-dev-server | 3.11 | | sass | 1.32 | | sass | 1.32 | | postcss | 8.2 |
Loaders
| Package | Version | |---------------------|---------| | ts-loader | 8.1 | | url-loader | 4.1 | | file-loader | 6.2 | | css-loader | 5.2 | | style-loader | 2.0 | | sass-loader | 11.0 | | postcss-loader | 5.2 | | postcss-safe-parser | 5.0 |
Plugin
| Package | Version | |------------------------------|---------| | html-webpack-plugin | 5.3 | | mini-css-extract-plugin | 1.5 | | terser-webpack-plugin | 5.1 | | copy-webpack-plugin | 8.1 | | clean-webpack-plugin | 3.0 | | css-minimizer-webpack-plugin | 2.0 |