javierbrea / node-sass-alias-importer Goto Github PK
View Code? Open in Web Editor NEWNode sass importer supporting custom alias for directories or specific files
License: MIT License
Node sass importer supporting custom alias for directories or specific files
License: MIT License
Describe the bug
The 9486588 commit attempts to add path support presumably to support Windows environments.
However this leads to aliases no longer working because most scss imports use @import "foo/bar";
rather than @import "foo\\bar";
which is what the code would be checking on Windows.
The fix for that is this:
--- if (!aliasFound && url.split(path.sep)[0] === aliasDetails.alias) {
+++ if (!aliasFound && url.split('/')[0] === aliasDetails.alias) {
To Reproduce
Run a test on a windows environment.
Expected behavior
The alias is updated.
Operating system, Node.js an npm versions, or browser version (please complete the following information):
The link to the LICENSE file in the README is broken.
The .md
extension has to be removed from the LICENSE link to make it work.
Node LTS at the time I'm writing this issue is 16.13.0
The currently supported node versions are 10, 11, 12, 14 and 15, but the module works fine with Node 16.
It is desirable to add mutation tests using Stryker
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
actions/download-artifact
, actions/upload-artifact
)These updates await pending status checks. To force their creation now, click the checkbox below.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/build.yml
actions/checkout v3
actions/setup-node v3
actions/cache v3
actions/upload-artifact v3
actions/checkout v3
actions/setup-node v3
actions/cache v3
actions/checkout v3
actions/download-artifact v3
windows 2022
.github/workflows/check-package-version.yml
actions/checkout v3
EndBug/version-check v2.1.1
martinbeentjes/npm-get-version-action v1.2.3
mindsers/changelog-reader-action v2.2.2
christian-draeger/read-properties 1.1.1
.github/workflows/publish-to-github-registry.yml
actions/checkout v3
actions/setup-node v3
MerthinTechnologies/edit-json-action v1
.github/workflows/publish-to-npm.yml
actions/checkout v3
actions/setup-node v3
package.json
eslint 8.54.0
eslint-config-prettier 9.0.0
eslint-plugin-prettier 5.0.1
husky 8.0.3
is-ci 3.0.1
jest 29.7.0
lint-staged 15.1.0
prettier 3.1.0
node-sass >=4.0.0
node >=14.0.0
It is desirable to describe some alternatives in the documentation, as:
webpack.resolve.alias
It is desirable to support the symbol ~
as as default alias, which should resolve to node_modules
In node-sass synchronous render mode, the done callback is not passed to the importer handler.
It is expected that the result will simply be returned from the handler.
Async mode: https://github.com/sass/node-sass/blob/master/lib/index.js#L324
Sync mode https://github.com/sass/node-sass/blob/master/lib/index.js#L403
Is your feature request related to a problem? Please describe.
Node-sass is deprecated, it will cause problema who is working with npm > 7
because the npm will auto install peer dependencies
Describe the solution you'd like
Remove node-sass
from peer dependencies or add to optional dependencies
Describe alternatives you've considered
Remove node-sass
from peer dependencies or add to optional dependencies
It is desirable to add E2E tests checking that the importer works as described in the documentation with both Webpack and Rollup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.