New Vue project based on @vue/cli 3.0

Write before: The package name of the Vue command line tool has changed from vue-cli to @vue/cli, @vue/cli is version 3.x of vue, and the maximum version of vue-cli is currently only @2.9.6.If you have previously installed vue-cli globally on your computer, you need to uninstall it first by executing NPM uninstall vue-cli ...

Posted by ravnen on Sun, 19 Jan 2020 08:21:54 -0800

Webpack practice: how to use style CSS preprocessing gracefully

In the last article, I mainly shared< How Webpack separates style files >css preprocessor is a program that allows you to generate css through preprocessor's own unique syntax. css preprocessing refers to that we often use some style precompiled languages in development, and then convert these pr ...

Posted by snowrhythm on Sat, 18 Jan 2020 20:05:38 -0800

Create react app quickly builds react projects, antd loads incoming and local request data on demand

# Global installation npm install -g create-react-app # Build a my-app Item npx create-react-app my-app cd my-app # Tap on the key points of the blackboard, if you want to use less,Or it depends on the use webpack Configuration files, exposing webpack Profiles, using create-react-app The created projec ...

Posted by Misticx on Thu, 16 Jan 2020 02:51:06 -0800

[Environment] go mod--a love-hate package management tool

Why do we need package management Python has pip, Nodejs has npm.Is there a package management tool in other languages, so go needs it?Of course not, let's look at the following code: import ( "github.com/TomatoMr/something" ) This is how go references packages, which is obviously a third-party package, so how exactly is it found on our m ...

Posted by bdbush on Tue, 14 Jan 2020 09:18:17 -0800

Getting Started Installation and Basic Use of Sass

Preface Sass is a CSS preprocessor that helps us reduce CSS duplicate code and save development time.CSS3 has been extended to include rules, variables, blending, selectors, inheritance, built-in functions, and more.Generate well-formatted CSS code for easy organization and maintenance with a Sass file suffix of.Scss. 1. Sass Installation NPM I ...

Posted by ppgpilot on Mon, 06 Jan 2020 11:48:03 -0800

Componentized Development of Vue Family Buckets

Author| Jeskson Excavation| https://juejin.im/user/5a16e1f3f265da43128096cb To learn component development, first master the idea of component development, the way components are registered, the data interaction between components, the use of component slots, the use of vue mode tools, and the way components implement business logic functions ...

Posted by cristalmolix on Mon, 06 Jan 2020 11:24:55 -0800

Vue element Multilingual Settings

In the project, you need to customize the Chinese / English switch. Based on vue.js, combined with vue-i18n and ElementUI, the following are the usage methods. ElementUI internationalization link: http://element-cn.eleme.io/#/... vue-i18n: https://github.com/kazupon/vu... Installation: npm install vue-i18n vue.js+vue-i18n int ...

Posted by Xo_ on Sun, 05 Jan 2020 06:41:50 -0800

react short book project

Header For fear of style conflicts among components, install the following for management npm install styled-components First, change index.css to style.js. If you want to set global variables, such as reset, then import {injectGlobal} from 'styled-components'; injectGlobal` html, body, div, span, applet, object, ...

Posted by comicrage on Sat, 04 Jan 2020 02:42:24 -0800

Vue.js+axios get service

First of all, what Xiaguan said on the Internet Execute GET request // Make a request for a user with a given ID axios.get('/user?ID=12345') .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); // Optionally the request above could also be done as axios.get( ...

Posted by nickholas on Fri, 03 Jan 2020 06:45:51 -0800

13 automatic processing of CSS3 property prefixes

Prefixing css3 with postcss loader Install two packages, postcss loader and autoprefixer, in the terminal npm install –save-dev postcss-loader autoprefixer If the installation fails, delete the node ﹣ modules folder. npm install reinstalls the folder and then reinstalls the above two packages 2. Create a postcss-con ...

Posted by pcbytes on Thu, 02 Jan 2020 01:33:37 -0800