swico 2.1.0-beta.6 → 2.1.0-beta.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "2.1.0-beta.6",
3
+ "version": "2.1.0-beta.7",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -35,7 +35,6 @@ function default_1(_a) {
35
35
  };
36
36
  const publicPath = (_b = customBaseConfig === null || customBaseConfig === void 0 ? void 0 : customBaseConfig.publicPath) !== null && _b !== void 0 ? _b : config_1.initConfig.publicPath;
37
37
  const routerBase = (_d = (_c = customBaseConfig === null || customBaseConfig === void 0 ? void 0 : customBaseConfig.router) === null || _c === void 0 ? void 0 : _c.base) !== null && _d !== void 0 ? _d : config_1.initConfig.router.base;
38
- const cssMode = 'css/auto';
39
38
  const basicPlugins = [];
40
39
  const defineConfigData = (_f = (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.base) === null || _e === void 0 ? void 0 : _e.define) !== null && _f !== void 0 ? _f : {};
41
40
  const formatObj = yield (0, config_1.getFormatDefineVars)(defineConfigData);
@@ -96,17 +95,17 @@ function default_1(_a) {
96
95
  oneOf: [
97
96
  {
98
97
  test: /\.css$/,
99
- type: cssMode,
98
+ type: 'css/auto',
100
99
  use: [postcssLoader]
101
100
  },
102
101
  {
103
102
  test: /\.less$/,
104
- type: cssMode,
103
+ type: 'css/auto',
105
104
  use: [postcssLoader, lessLoader]
106
105
  },
107
106
  {
108
107
  test: /\.scss$/,
109
- type: cssMode,
108
+ type: 'css/auto',
110
109
  use: [
111
110
  postcssLoader,
112
111
  {
@@ -29,7 +29,6 @@ export interface GlobalSwicoConfigType {
29
29
  devtool?: string;
30
30
  externals?: any;
31
31
  router?: ConfigRouterType;
32
- cssAuto?: boolean;
33
32
  }
34
33
  export interface GlobalData {
35
34
  templateType?: GlobalSwicoConfigType['template'];
@@ -38,7 +37,7 @@ export interface GlobalData {
38
37
  templatePath: string;
39
38
  env?: 'dev' | 'prod';
40
39
  customConfig: {
41
- base: Pick<GlobalSwicoConfigType, 'plugins' | 'publicPath' | 'alias' | 'define' | 'devtool' | 'externals' | 'router' | 'template' | 'cssAuto'>;
40
+ base: Pick<GlobalSwicoConfigType, 'plugins' | 'publicPath' | 'alias' | 'define' | 'devtool' | 'externals' | 'router' | 'template'>;
42
41
  dev: Pick<GlobalSwicoConfigType, 'plugins' | 'proxy' | 'https' | 'devtool' | 'router'>;
43
42
  prod: Pick<GlobalSwicoConfigType, 'plugins' | 'console' | 'copy' | 'devtool' | 'router'>;
44
43
  };
@@ -77,8 +77,7 @@ const getProjectConfig = (env) => __awaiter(void 0, void 0, void 0, function* ()
77
77
  'devtool',
78
78
  'externals',
79
79
  'router',
80
- 'template',
81
- 'cssAuto'
80
+ 'template'
82
81
  ];
83
82
  configFileName = 'swico.ts';
84
83
  break;
@@ -267,7 +266,6 @@ const getFormatDefineVars = (defineVarsConfigData) => __awaiter(void 0, void 0,
267
266
  exports.getFormatDefineVars = getFormatDefineVars;
268
267
  exports.initConfig = {
269
268
  console: true,
270
- cssAuto: true,
271
269
  plugins: [],
272
270
  publicPath: '/',
273
271
  proxy: undefined,