@namics/webpack-4-ts-config

0.2.0 • Public • Published

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

/@namics/webpack-4-ts-config/

    Package Sidebar

    Install

    npm i @namics/webpack-4-ts-config

    Weekly Downloads

    0

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    10.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • coder1389
    • merkleorg
    • namicsorg
    • ernscht
    • tamara027
    • tsailer