A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/PanJiaChen/vue-element-admin/commit/2ea998f91d889480821468de86df9bf8defbb5f0 below:

use babel-plugin-dynamic-import-node · PanJiaChen/vue-element-admin@2ea998f · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+11

-10

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+11

-10

lines changed Original file line number Diff line number Diff line change

@@ -3,12 +3,3 @@ ENV = 'development'

3 3 4 4

# base api

5 5

VUE_APP_BASE_API = '/dev-api'

6 - 7 -

# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,

8 -

# to control whether the babel-plugin-dynamic-import-node plugin is enabled.

9 -

# It only does one thing by converting all import() to require().

10 -

# This configuration can significantly increase the speed of hot updates,

11 -

# when you have a large number of pages.

12 -

# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js

13 - 14 -

VUE_CLI_BABEL_TRANSPILE_MODULES = true

Original file line number Diff line number Diff line change

@@ -1,5 +1,14 @@

1 1

module.exports = {

2 2

presets: [

3 +

// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app

3 4

'@vue/cli-plugin-babel/preset'

4 -

]

5 +

],

6 +

'env': {

7 +

'development': {

8 +

// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().

9 +

// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.

10 +

// https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html

11 +

'plugins': ['dynamic-import-node']

12 +

}

13 +

}

5 14

}

Original file line number Diff line number Diff line change

@@ -16,6 +16,7 @@

16 16

},

17 17

"dependencies": {

18 18

"axios": "0.18.1",

19 +

"babel-plugin-dynamic-import-node": "2.3.3",

19 20

"clipboard": "2.0.4",

20 21

"codemirror": "5.45.0",

21 22

"core-js": "3.6.5",

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4