0.2.0 • Published 6 years ago

@namics/webpack-4-ts-config v0.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Webpack 4 Typescript config npm

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",
    }
  },
  ...

License

MIT License