Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 800 Bytes

is-valid.md

File metadata and controls

45 lines (31 loc) · 800 Bytes

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