0.1.18 • Published 3 years ago

webpack-factory-config v0.1.18

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

webpack-factory-config

This basic webpack config.

Options

NameTypeRequiredDefaultDescriptionExample
tsConfigStringtrueThe path to the "tsconfig.json" file.
srcAppStringtruePath to the directory with the project code../src
indexAppStringtrueThe path to the index file of the application.
indexHtmlStringtruePath to index.html file.
outputPathStringtruePath to directory with output files../dist
publicPathStringfalse
assetsPathStringfalseThe path to the directory with static resource files. Will be copied to outputPath.
modeStringfalseprocess.env.NODE_ENV \|\| 'development'Build mode. development or production
useSourceMapBooleanfalsefalseGenerate source maps

This configuration includes

PackageVersion
webpack5.33
typescript4.2
webpack-dev-server3.11
sass1.32
sass1.32
postcss8.2

Loaders

PackageVersion
ts-loader8.1
url-loader4.1
file-loader6.2
css-loader5.2
style-loader2.0
sass-loader11.0
postcss-loader5.2
postcss-safe-parser5.0

Plugin

PackageVersion
html-webpack-plugin5.3
mini-css-extract-plugin1.5
terser-webpack-plugin5.1
copy-webpack-plugin8.1
clean-webpack-plugin3.0
css-minimizer-webpack-plugin2.0