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

sass symlink will no longer be created with version 3.x of the plugin #172

Open
alansemenov opened this issue Feb 27, 2024 · 0 comments
Open

Comments

@alansemenov
Copy link

alansemenov commented Feb 27, 2024

After upgrading from 2.16.1 to 3.1.0, our npm scripts using sass symlink have stopped working.

After spending some time investigating the reason we came to the following conclusions.

Before upgrade we had the following dependencies in package.json:

devDependencies: {
...
    "esbuild-sass-plugin": "^2.16.1",
    "sass": "^1.71.1",
...
}

npm install would in this case create a symlink called "sass" in node_modules/.bin/ folder and we could use "npx sass... " ssh script to build sass files.

After upgrade we have the following:

devDependencies: {
...
    "esbuild-sass-plugin": "^3.1.0",
    "sass": "^1.71.1",
...
}

With this setup the sass symlink will no longer be created. Apparently, this is caused by the new way of bundling sass-embedded with esbuild-sass-plugin plugin. We tried removing esbuild-sass-plugin from devDependencies and adding "sass-embedded": "^1.71.1" and the result is the same - sass symlink won't be created.

We would really love to upgrade to the new version of esbuild-sass-plugin but we cannot do this with the sass symlink gone missing.

Any advice would be highly appreciated.

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