Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@import doesn't work well with symlinks #65

Open
malash opened this issue Nov 18, 2019 · 0 comments
Open

@import doesn't work well with symlinks #65

malash opened this issue Nov 18, 2019 · 0 comments

Comments

@malash
Copy link

malash commented Nov 18, 2019

I created a reproduce demo here https://github.com/peerigon/extract-loader/pull/64/files

In this case the main.css imports common.css which is a symlink to symlinks/common.css.

      1 .
      2 ├── symlinks
      3 │   └── common.css -> ../common.css
      4 ├── common.css
      5 ├── hi.jpg
      6 ├── index.html
      7 ├── main.css
      8 └── main.js
      9
     10 1 directory, 6 files

The Webpack build failed because the basedir in resolve.sync was wrong.

basedir: path.dirname(filename),

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant