JSPM

  • Created
  • Published
  • Downloads 22101
  • Score
    100M100P100Q150830F
  • License Apache-2.0

hint thats to check the webpack configuration.

Package Exports

  • @hint/hint-webpack-config
  • @hint/hint-webpack-config/dist/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hint/hint-webpack-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

webpack configuration hints set (webpack-config)

webpack-config contains set of hints to check if your webpack configuration file (webpack.config.js) has the most recommended configuration.

Why is this important?

If you are building an app or a website using webpack, you need to be sure that your configuration is the best for your needs.

Hints

How to use these hints?

This package is installed automatically by webhint:

npm install hint --save-dev

To use it, activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": [...],
    "hints": {
        "webpack-config/config-exists": "error",
        "webpack-config/is-installed": "error",
        "webpack-config/is-valid": "error",
        "webpack-config/module-esnext-typescript": "error",
        "webpack-config/no-devtool-in-prod": "error",
        ...
    },
    "parsers": ["webpack-config", "typescript-config"],
    ...
}

Note: The recommended way of running webhint is as a devDependency of your project.

Further Reading