gant-core 0.1.24 → 0.1.25
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/lib/cli/index.js +11 -8
- package/lib/cli/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -6307,38 +6307,41 @@ class CopyFolderPlugin {
|
|
|
6307
6307
|
}
|
|
6308
6308
|
|
|
6309
6309
|
var getProConfig = (config, cwd) => {
|
|
6310
|
-
const { outputPathDir =
|
|
6310
|
+
const { outputPathDir = "dist", optimization } = config;
|
|
6311
6311
|
return mergeConfig$1({
|
|
6312
|
-
mode:
|
|
6312
|
+
mode: "production",
|
|
6313
6313
|
optimization: {
|
|
6314
6314
|
minimize: true,
|
|
6315
6315
|
minimizer: [new CssMinimizerPlugin()],
|
|
6316
6316
|
splitChunks: {
|
|
6317
|
-
chunks:
|
|
6317
|
+
chunks: "all",
|
|
6318
6318
|
minSize: 1000,
|
|
6319
6319
|
minChunks: 1,
|
|
6320
6320
|
cacheGroups: {
|
|
6321
6321
|
vendors: {
|
|
6322
|
-
name:
|
|
6322
|
+
name: "vendors",
|
|
6323
6323
|
test: /[\\/]node_modules[\\/]/,
|
|
6324
6324
|
priority: -10,
|
|
6325
6325
|
reuseExistingChunk: true,
|
|
6326
6326
|
},
|
|
6327
6327
|
gant: {
|
|
6328
|
-
name:
|
|
6328
|
+
name: "gant",
|
|
6329
6329
|
priority: -20,
|
|
6330
6330
|
reuseExistingChunk: true,
|
|
6331
6331
|
},
|
|
6332
|
+
...get$3(optimization?.splitChunks, "cacheGroups", {}),
|
|
6332
6333
|
},
|
|
6334
|
+
...optimization?.splitChunks,
|
|
6333
6335
|
},
|
|
6336
|
+
...optimization,
|
|
6334
6337
|
},
|
|
6335
6338
|
plugins: [
|
|
6336
6339
|
new MiniCssExtractPlugin$1(),
|
|
6337
6340
|
new CopyFolderPlugin({
|
|
6338
6341
|
patterns: [
|
|
6339
6342
|
{
|
|
6340
|
-
from: path$5.resolve(cwd,
|
|
6341
|
-
to: path$5.resolve(cwd, outputPathDir,
|
|
6343
|
+
from: path$5.resolve(cwd, "./src/.gant/public"),
|
|
6344
|
+
to: path$5.resolve(cwd, outputPathDir, "./public"),
|
|
6342
6345
|
},
|
|
6343
6346
|
],
|
|
6344
6347
|
}),
|
|
@@ -48717,7 +48720,7 @@ const createCwdConfig = (cwd, name, vue) => {
|
|
|
48717
48720
|
};
|
|
48718
48721
|
|
|
48719
48722
|
var name = "gant-core";
|
|
48720
|
-
var version = "0.1.
|
|
48723
|
+
var version = "0.1.25";
|
|
48721
48724
|
var description = "";
|
|
48722
48725
|
var main = "lib/index.js";
|
|
48723
48726
|
var bin = {
|