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
全新一期的 webpack 更新日志又来了哦,本期内容大部分都与 CSS Modules 相关,话不多说开始正题。
compilation-object
deleteAsset
remark-loader
css-loader
compileType
icss
interoperable css
modules
css module
postcss-loader
less-loader
prependData
appendData
additionalData
Less
implementation
webpackImporter
DefinePlugin
runtimeValue
split-chunks-plugin
optimization.splitChunks
chunks
async
mini-css-extract-plugin
namedExport
asset-management
externals
externalsType
script
module.exports = { // ... externalsType: 'script', externals: { lodash: ['https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js', '_'], } };
html-loader
loader
concepts
terser-webpack-plugin
从更新日志的更新频次来看,最近社区针对 CSS Module 的更新较多,大家可以从这方面进行尝试。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
英文篇
内容更新
API
compilation-object
中新增了deleteAsset
字段,用于移除资源loader
remark-loader
,用于处理 markdowncss-loader
中新增了compileType
的使用说明icss
时,只使用interoperable css
的部分特性;当配置为modules
时,会使用所有的css module
特性。(webpack v4 以前,icss 是默认应用于所有文件的)postcss-loader
完善了文档内容及示例less-loader
prependData
和appendData
合并为additionalData
,用于在入口文件的开始和结尾处新增Less
代码implementation
被移除webpackImporter
,用于启用/禁用 webpack 默认的 importer。插件
DefinePlugin
新增了runtimeValue
的属性,当runtimeValue
监听的文件变化时,webpack 将重新执行构建split-chunks-plugin
插件时,optimization.splitChunks
选项的chunks
默认值变更为async
mini-css-extract-plugin
插件中新增了关于 CSS Module 的配置项,modules
和namedExport
指南
asset-management
新增关于 loader 链式调用的描述配置
externals
章节新增了externalsType
的说明externalsType
设置为script
时,可使用外部 CDN 链接中文篇
内容更新
loader
html-loader
的翻译工作css-loader
新增部分的翻译工作loader
首页的翻译指南
concepts
首页中的描述插件
terser-webpack-plugin
的翻译工作mini-css-extract-plugin
中新增部分的翻译工作。站点更新
总结
从更新日志的更新频次来看,最近社区针对 CSS Module 的更新较多,大家可以从这方面进行尝试。
The text was updated successfully, but these errors were encountered: