I have setup webpack using npm. I installed jshint using npm install jshint --save-dev
.
Now if I run command jshint assets/js/index.js
i get errors.
I want to check the errors on npm run build
You can change your build script in the package.json in the way to run lint and then if it successful run build. See example
{
...
"scripts": {
"build": "npm run lint && your_build_command",
"lint": "jshint assets/js/index.js"
}
...
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments