Now only all relative paths with './' and '../' will be resolved, the reset like alias and node_modules will be solved at the preprocessor
Pinned
Activity
ben-lau pull request yenshih/style-resources-loader
feat: support resolve url() statements
support resolve url()
statements, because in some cases, when we use url()
to import images, we would expect the image path to be relative to the resource file, not to the source files.
ben-lau push ben-lau/style-resources-loader
commit sha: be020146b8b67fe7bdb4fe58a68689ca9b297f3c
push time in 2 days agoben-lau pull request yenshih/style-resources-loader
feat: support resolve url() statements
support resolve url()
statements, because in some cases, when we use url()
to import images, we would expect the image path to be relative to the resource file, not to the source files.
ben-lau push ben-lau/postcss
commit sha: e36ed17cc62add2b4f80d8abcfb3136152800f32
push time in 4 days agoben-lau push ben-lau/style-resources-loader
commit sha: 766a8a3679641e2c97bdfec2555356f883e3e1da
push time in 6 days agoben-lau issue comment yenshih/style-resources-loader
feat: support resolve url() statements
support resolve url()
statements, because in some cases, when we use url()
to import images, we would expect the image path to be relative to the resource file, not to the source files.
when you @import 'webpack/package.json'
, it will convert to @import '/Users/ben/project/node_modules/webpack/package.json'
ben-lau issue comment yenshih/style-resources-loader
feat: support resolve url() statements
support resolve url()
statements, because in some cases, when we use url()
to import images, we would expect the image path to be relative to the resource file, not to the source files.
also fix the issue #6
ben-lau issue comment yenshih/style-resources-loader
feat: support resolve url() statements
support resolve url()
statements, because in some cases, when we use url()
to import images, we would expect the image path to be relative to the resource file, not to the source files.
Now supports @import
statement and url()
statement to import modules from node_modules or alias
ben-lau push ben-lau/style-resources-loader
commit sha: 351cb569a74539a67ec8593c8bf92fda6518ea60
push time in 1 week agoben-lau push ben-lau/style-resources-loader
commit sha: 834c2bd2ab29e40aea2ba434f10aac1bd115518a
push time in 1 week agoben-lau pull request yenshih/style-resources-loader
feat: support resolve url() statements
support resolve url()
statements, because in some cases, when we use url()
to import images, we would expect the image path to be relative to the resource file, not to the source files.
ben-lau push ben-lau/style-resources-loader
commit sha: e1fbe22ab6065624aa19531ccb98354692910f01
push time in 1 week agoben-lau forked yenshih/style-resources-loader
ben-lau in ben-lau/postcss-pixel-to-remvw create published release v2.0.5
feat: support resolve url() statements
support resolve
url()
statements, because in some cases, when we useurl()
to import images, we would expect the image path to be relative to the resource file, not to the source files.