This site uses cookies for analytics. By continuing to browse this site, you agree to this use.
A JS Foundation Project

Valid webpack configuration

Valid webpack configuration (is-valid)

Why is this important?

To avoid problems in your project, the webpack configuration needs to be valid.

What does the hint check?

This hint checks if the Webpack configuration file is valid.

Examples that trigger the hint

The webpack.config.js has is an invalid javascript:

module.exports = {
    entry: 'invalid,
    output: {
        filename: 'bundle.js'

Examples that pass the hint

The configuration is valid:

const path = require('path');

module.exports = {
    entry: ['entry'],
    output: {
        filename: 'bundle.js',
        path: path.join(__dirname, 'dist')

Further Reading