akfun 3.3.3 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/config/rollup.config.js +4 -2
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@ const projectConfig = require('./index'); // 引入当前项目配置文件
|
|
|
28
28
|
const { buildBanner } = require('../utils/akfunParams');
|
|
29
29
|
|
|
30
30
|
module.exports = function (fileName, akfunConfig) {
|
|
31
|
-
const curConfig = akfunConfig ||
|
|
31
|
+
const curConfig = akfunConfig || projectConfig;
|
|
32
32
|
const build2esm = curConfig.build2esm || {};
|
|
33
33
|
const curWebpackConfig = curConfig.webpack || {};
|
|
34
34
|
// 获取用户配置的构建入口文件
|
|
@@ -95,7 +95,9 @@ module.exports = function (fileName, akfunConfig) {
|
|
|
95
95
|
prettier: false,
|
|
96
96
|
dimensions: false
|
|
97
97
|
}),
|
|
98
|
-
image(
|
|
98
|
+
image({
|
|
99
|
+
exclude: [build2esm.svgDir || 'src/icons/**']
|
|
100
|
+
}),
|
|
99
101
|
json()
|
|
100
102
|
],
|
|
101
103
|
output: [
|