Tag Archives: babel

[Solved] Vue installation Babel dependency error

Just deleted the dependent package for some reasons and reinstalled it. The result is an error

deprecate babel-preset-es2015@* ???? Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!

After checking, it turns out that Babel preset es2015 has been started and abandoned. Now Babel preset env is the latest one. Just reinstall it

npm install babel-preset-env --save

 

WebPack Task Runner

https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebPackTaskRunner

New to WebPack?

You may want to check out the article How to integrate WebPack into Visual Studio 2015 by Ilya Pirozhenko

Install WebPack

In order to use this extension, you must have WebPack installed globally or locally in your project.

Use npm to install it globally by typing the following in a command line:

npm install webpack -g

To use the server functionality you also need to install webpack-dev-server like so:

npm install webpack-dev-server -g

If you wish to use babel to run WebPack, you must first install it locally in your project:

npm install babel-core --save-dev

Item Template

You can easily add a new webpack.config.js file to your project from the Add New Item dialog.

Just search for “webpack”.