Use Vue CLI 3 quickly create a project / custom configuration Webpack and Babel
1. Use the Vue CLI quickly create project
Select Custom configuration to create:
2. pits 1
After you've created your project, open the project, the project started with VS Code:npm run serve
-
Introduction means inlet file:
-
Change in App.vue in:
-
Restart the project, given:
Solution :
-
In the project file folder New vue.config.js
-
Write the following contents:
3. Demand the introduction of components
- Install plug-ins:
npm i --save-dev babel-plugin-import
- Babel.config.js related configuration file:
- Change in main.js code components incorporated in: