Skip to content

Commit 6782263

Browse files
author
Shawn Wang
committed
update replace relative path by absolute path
1 parent 8f4bd14 commit 6782263

34 files changed

+818
-688
lines changed

build/run/production.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@ const { exec } = require('child_process')
22
const path = require('path')
33
const chalk = require('chalk')
44
const projectPath = process.cwd()
5-
const distDirPath = path.join(projectPath, 'dist')
65
const webpackPath = path.join(projectPath, 'node_modules/.bin/webpack')
76
const webpackConfigPath = path.join(projectPath, 'build/webpack.config.js')
87

98
function run() {
109
const buildCommand = `${webpackPath} --config ${webpackConfigPath} --progress`
1110
console.log(chalk.blue(buildCommand))
12-
const child = exec(buildCommand, {
13-
maxBuffer: 2 * 1024 * 1024,
14-
}, (error, stdout, stderr) => {
15-
if (error) {
16-
console.error(error.message)
11+
const child = exec(
12+
buildCommand,
13+
{
14+
maxBuffer: 2 * 1024 * 1024,
15+
},
16+
(error, stdout, stderr) => {
17+
if (error) {
18+
console.error(error.message)
19+
}
1720
}
18-
})
21+
)
22+
1923
child.stdout.pipe(process.stdout)
2024
}
2125

dist/css/app.002699c4.d1a04b728a0f850539c3.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/favicon.ico

1.12 KB
Binary file not shown.
1.28 KB
Loading
914 Bytes
Loading
1.08 KB
Loading
7.6 KB
Loading

dist/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>loading...</title><link rel="shortcut icon" href=/vue-boilerplate/dist/favicon.ico><link href=/vue-boilerplate/dist/css/app.002699c4.d1a04b728a0f850539c3.css rel=stylesheet></head><body><div id=app></div><script src=vendor/vendor.dll.js></script><script type=text/javascript src=/vue-boilerplate/dist/js/app.002699c4d1a04b728a0f850539c3.js></script></body></html>

dist/js/app.002699c4d1a04b728a0f850539c3.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vendor/manifest.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)