When you add a script from modules (like so: script(src=require('bootstrap/dist/js/bootstrap.bundle.js'))
)
and then when using webpack-dev-server you make changes in any .scss or .js file of the project you get this error in the browser's console:
Not allowed to load local resource: file:///E:/pug-plugin-issue/node_modules/bootstrap/dist/js/bootstrap.bundle.js
- Clone, install and start
git clone https://github.com/jeneko/pug-plugin-issue
cd pug-plugin-issue
npm i
npm start
- Open localhost:8080 in your browser
- Open browser's console
- Make any change in any .scss file of the project
- Get error in console