Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖文锋
/
pdfPreview
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
20adf1f4
authored
Jun 04, 2020
by
xiaowenfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了打包配置vue.config.js
parent
bdc13af1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
43 deletions
src/router/dist/index.dev.js
src/router/index.js
vue.config.js
src/router/dist/index.dev.js
View file @
20adf1f4
...
...
@@ -9,36 +9,14 @@ var _vue = _interopRequireDefault(require("vue"));
var
_vueRouter
=
_interopRequireDefault
(
require
(
"vue-router"
));
var
_Home
=
_interopRequireDefault
(
require
(
"../views/Home.vue"
));
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
"default"
:
obj
};
}
function
_typeof
(
obj
)
{
if
(
typeof
Symbol
===
"function"
&&
typeof
Symbol
.
iterator
===
"symbol"
)
{
_typeof
=
function
_typeof
(
obj
)
{
return
typeof
obj
;
};
}
else
{
_typeof
=
function
_typeof
(
obj
)
{
return
obj
&&
typeof
Symbol
===
"function"
&&
obj
.
constructor
===
Symbol
&&
obj
!==
Symbol
.
prototype
?
"symbol"
:
typeof
obj
;
};
}
return
_typeof
(
obj
);
}
function
_getRequireWildcardCache
()
{
if
(
typeof
WeakMap
!==
"function"
)
return
null
;
var
cache
=
new
WeakMap
();
_getRequireWildcardCache
=
function
_getRequireWildcardCache
()
{
return
cache
;
};
return
cache
;
}
function
_interopRequireWildcard
(
obj
)
{
if
(
obj
&&
obj
.
__esModule
)
{
return
obj
;
}
if
(
obj
===
null
||
_typeof
(
obj
)
!==
"object"
&&
typeof
obj
!==
"function"
)
{
return
{
"default"
:
obj
};
}
var
cache
=
_getRequireWildcardCache
();
if
(
cache
&&
cache
.
has
(
obj
))
{
return
cache
.
get
(
obj
);
}
var
newObj
=
{};
var
hasPropertyDescriptor
=
Object
.
defineProperty
&&
Object
.
getOwnPropertyDescriptor
;
for
(
var
key
in
obj
)
{
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
obj
,
key
))
{
var
desc
=
hasPropertyDescriptor
?
Object
.
getOwnPropertyDescriptor
(
obj
,
key
)
:
null
;
if
(
desc
&&
(
desc
.
get
||
desc
.
set
))
{
Object
.
defineProperty
(
newObj
,
key
,
desc
);
}
else
{
newObj
[
key
]
=
obj
[
key
];
}
}
}
newObj
[
"default"
]
=
obj
;
if
(
cache
)
{
cache
.
set
(
obj
,
newObj
);
}
return
newObj
;
}
_vue
[
"default"
].
use
(
_vueRouter
[
"default"
]);
var
routes
=
[{
path
:
"/"
,
name
:
"Home"
,
component
:
_Home
[
"default"
]
},
{
path
:
"/about"
,
name
:
"About"
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
function
component
()
{
return
Promise
.
resolve
().
then
(
function
()
{
return
_interopRequireWildcard
(
require
(
"../views/About.vue"
));
});
}
}];
var
routes
=
[];
var
router
=
new
_vueRouter
[
"default"
]({
routes
:
routes
routes
:
routes
,
mode
:
"history"
});
var
_default
=
router
;
exports
[
"default"
]
=
_default
;
\ No newline at end of file
src/router/index.js
View file @
20adf1f4
import
Vue
from
"vue"
;
import
VueRouter
from
"vue-router"
;
import
Home
from
"../views/Home.vue"
;
Vue
.
use
(
VueRouter
);
const
routes
=
[
{
path
:
"/"
,
name
:
"Home"
,
component
:
Home
},
{
path
:
"/about"
,
name
:
"About"
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
"../views/About.vue"
)
}
];
const
routes
=
[];
const
router
=
new
VueRouter
({
routes
routes
,
mode
:
"history"
});
export
default
router
;
vue.config.js
0 → 100644
View file @
20adf1f4
module
.
exports
=
{
publicPath
:
process
.
env
.
NODE_ENV
===
"production"
?
"./"
:
"/"
,
assetsDir
:
"static"
,
outputDir
:
"previewPDF"
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment