UNPKG
vue2-webpack5-pack
Version:
latest (1.0.0)
1.0.0
开箱即用的 vue2 + Webpack5 项目模板
github.com/Cole-yu/vue2-webpack5-pack
Cole-yu/vue2-webpack5-pack
vue2-webpack5-pack
/
build
/
utils.js
12 lines
(10 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
path =
require
(
'path'
);
const
root = path.
resolve
(__dirname,
'..'
);
function
rootResolve
(
...args
){
return
path.
resolve
(root, ...args); }
const
devMode = process.
env
.
NODE_ENV
===
'development'
;
module
.
exports
= { rootResolve, devMode }