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
第47天 你是怎样抽离样式模块的?
The text was updated successfully, but these errors were encountered:
样式模块? 通过组件化思想,用BEM方式命名。
Sorry, something went wrong.
说的是 webpack + extract-text-webpack-plugin插件吧? 把样式文件单独打包出来。 webpack4 升级了插件为 mini-css-extract-plugin
把常用的css样式单独做成css文件……通用的和业务相关的分离出来,通用的做成样式模块儿共享,业务相关的,放进业务相关的库里面做成对应功能的模块儿。 原文链接:markyun/markyun#80
在使用Vue时,CSS本来就是在组件内的,应该已经算模块化了吧?如果是公用的可以抽离到外面。 在用React时,一般我会使用styled-component方案来组织CSS,使用这种方案时,CSS也可以看作是一个React组件。
vue组件的样式加上scoped
No branches or pull requests
第47天 你是怎样抽离样式模块的?
The text was updated successfully, but these errors were encountered: