Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
Zj Hl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张俊
Zj Hl
Commits
4d771b88
You need to sign in or sign up before continuing.
Commit
4d771b88
authored
Jul 28, 2021
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ie11兼容测试
parent
22e392b3
Pipeline
#52307
passed with stage
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2139 deletions
+24
-2139
package-lock.json
package-lock.json
+0
-2121
package.json
package.json
+1
-0
vite.config.js
vite.config.js
+23
-18
No files found.
package-lock.json
deleted
100644 → 0
View file @
22e392b3
This diff is collapsed.
Click to expand it.
package.json
View file @
4d771b88
...
...
@@ -13,6 +13,7 @@
"
axios
"
:
"
^0.21.1
"
,
"
core-js
"
:
"
^3.15.2
"
,
"
sass
"
:
"
^1.35.1
"
,
"
vite-plugin-legacy
"
:
"
^2.1.0
"
,
"
vue
"
:
"
^3.0.5
"
,
"
vue-i18n
"
:
"
^9.1.7
"
,
"
vue-router
"
:
"
^4.0.10
"
,
...
...
vite.config.js
View file @
4d771b88
import
{
defineConfig
}
from
'
vite
'
import
vue
from
'
@vitejs/plugin-vue
'
import
babel
from
'
@rollup/plugin-babel
'
;
import
legacyPlugin
from
'
vite-plugin-legacy
'
const
path
=
require
(
'
path
'
)
console
.
log
(
__dirname
);
...
...
@@ -11,7 +11,27 @@ function resolve_path (dir) {
export
default
defineConfig
({
plugins
:
[
vue
()],
plugins
:
[
vue
(),
// The default options are listed below. Pass nothing to use them.
legacyPlugin
({
// The browsers that must be supported by your legacy bundle.
// https://babeljs.io/docs/en/babel-preset-env#targets
targets
:
[
'
ie >= 11
'
],
// Define which polyfills your legacy bundle needs. They will be loaded
// from the Polyfill.io server. See the "Polyfills" section for more info.
polyfills
:
[
// Empty by default
],
// Toggles whether or not browserslist config sources are used.
// https://babeljs.io/docs/en/babel-preset-env#ignorebrowserslistconfig
ignoreBrowserslistConfig
:
false
,
// When true, core-js@3 modules are inlined based on usage.
// When false, global namespace APIs (eg: Object.entries) are loaded
// from the Polyfill.io server.
corejs
:
false
,
})
],
base
:
'
./
'
,
clearScreen
:
false
,
resolve
:{
...
...
@@ -32,20 +52,5 @@ export default defineConfig({
outDir
:
'
dist/zjhl
'
,
assetsDir
:
'
static
'
},
rollupInputOptions
:
{
plugins
:
[
babel
({
presets
:
[[
"
@babel/preset-env
"
,
{
"
corejs
"
:
2
,
"
useBuiltIns
"
:
"
usage
"
,
"
targets
"
:
{
"
ie
"
:
"
11
"
}
}
]]
})
],
}
})
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