Note : with style: true css source files are imported and optimizations can be done during compilation time. With style: "css", pre bundled css files are imported as they are.
style: true can reduce the bundle size significantly, depending on your usage of the library.
{ "libraryName": "antd", style: true } { "libraryName": "antd", style: "css" }
Note : with style: true css source files are imported and optimizations can be done during compilation time. With style: "css", pre bundled css files are imported as they are.
style: true can reduce the bundle size significantly, depending on your usage of the library.
这里特别提示: 用style会显著减少bundle的体积 (引入antd), 我看到编译后的css.js 和index.js 都会引入 require("../../style/default.css"); 这个文件
这里想问一下, 为什么style方式会显著影响?
感谢您的回复.