0.2.0 • Published 7 years ago
@namics/webpack-4-ts-config v0.2.0
Webpack 4 Typescript config
reusable and easy to use webpack config
Usage
npm i -D webpack webpack-dev-server webpack-cli @namics/webpack-4-ts-config
webpack.config.js
module.exports = require('@namics/webpack-4-ts-config');
package.json
...
"scripts": {
"start": "webpack-dev-server",
"build": "webpack-cli --env production --mode production --config ./webpack.config.js",
...
},
"config": {
"webpack-4-ts-config": {
"port": 3003,
"banner": "/* Build {date} */",
"include": "@project",
"i18nProductionDependency": "@project/i18n",
"externalsPath": "./externals.json",
}
},
...