We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
style的配置目前只支持true和css,分别会加载组件目录的${path}/style和${path}/style/css
true
css
${path}/style
${path}/style/css
// Plugin.js中第59行 if (style === true) { addSideEffect(file.path, `${path}/style`); } else if (style === 'css') { addSideEffect(file.path, `${path}/style/css`); }
可不可以把style扩展出其他值,方便更多种类的样式目录自定义,比如这样写
if (style === true) { addSideEffect(file.path, `${path}/style`); } else if (style === 'css') { addSideEffect(file.path, `${path}/style/css`); } else if (typeof style === 'string') { addSideEffect(file.path, `${path}/style/${style}`); }
这样写以后,可以方便的通过babelrc文件配置组件中加载样式的路径,适配更加灵活。
在我的项目中,css分为@1x, @2x ,@3x,想通过修改配置,方便的引入不同尺寸的css。
如果可以的的话,我就提pr了,thx。 :)
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Hi,想要问下大大们,什么时候可以合并pr,publish到npm呢?
No branches or pull requests
style的配置目前只支持
true
和css
,分别会加载组件目录的${path}/style
和${path}/style/css
可不可以把style扩展出其他值,方便更多种类的样式目录自定义,比如这样写
这样写以后,可以方便的通过babelrc文件配置组件中加载样式的路径,适配更加灵活。
issue由来
在我的项目中,css分为@1x, @2x ,@3x,想通过修改配置,方便的引入不同尺寸的css。
如果可以的的话,我就提pr了,thx。 :)
The text was updated successfully, but these errors were encountered: