@autobest-ui/scripts 1.5.9-alpha.0 → 1.5.9-alpha.1

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.
Files changed (2) hide show
  1. package/common/start.js +3 -3
  2. package/package.json +2 -2
package/common/start.js CHANGED
@@ -3,7 +3,7 @@ const webpack = require('webpack');
3
3
  const open = require('open');
4
4
  const appConfig = require('./appConfig');
5
5
  const getEnvironmentInfo = require('./extendEnv');
6
- const { parseArgsToJson, getProjectPath } = require('./utils');
6
+ const { parseArgsToJson } = require('./utils');
7
7
 
8
8
  function openStartRun(webpackFactory) {
9
9
  process.env.BABEL_ENV = 'development';
@@ -32,8 +32,6 @@ function openStartRun(webpackFactory) {
32
32
  progress: false
33
33
  },
34
34
  static: {
35
- directory: getProjectPath(appConfig.startOutput.path),
36
- publicPath: appConfig.startOutput.publicPath || '/',
37
35
  watch: {
38
36
  aggregateTimeout: 300,
39
37
  poll: 1000,
@@ -46,6 +44,8 @@ function openStartRun(webpackFactory) {
46
44
 
47
45
  try {
48
46
  const config = webpackFactory({ ...appConfig, port: PORT, startOpenPath }, extendEnv);
47
+ options.static.publicPath = config.output.publicPath;
48
+ options.static.directory = config.output.path;
49
49
  const compiler = webpack(config);
50
50
  const server = new WebpackDevServer(options, compiler);
51
51
  let hasOpenBrowser = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobest-ui/scripts",
3
- "version": "1.5.9-alpha.0",
3
+ "version": "1.5.9-alpha.1",
4
4
  "private": false,
5
5
  "description": "utils for project tools",
6
6
  "bin": {
@@ -92,5 +92,5 @@
92
92
  "webpack-merge": "5.8.0",
93
93
  "webpack-node-externals": "3.0.0"
94
94
  },
95
- "gitHead": "07a247ee99eeaa695b13bddf4051f7a433975115"
95
+ "gitHead": "6236aaf8638cb9b5dad99d8fbc191cc9e2efbee4"
96
96
  }