Skip to content

Jeneko/pug-plugin-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pug-plugin issue (fixed in v4.9.7)

Description

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

How to reproduce

  1. Clone, install and start
git clone https://github.com/jeneko/pug-plugin-issue

cd pug-plugin-issue

npm i

npm start
  1. Open localhost:8080 in your browser
  2. Open browser's console
  3. Make any change in any .scss file of the project
  4. Get error in console

error-image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published