Automatic route generation and code cutting for vue project function menu configuration
Function menu configuration automatically generates routing and code cutting
Menu is routing, shared configuration
Appointment
The views directory stores the business components; the business modules are stored in folders, and the main routing components are stored in the directory with the routing name named by index.
views * * business compon ...
Posted by robh76 on Sat, 26 Oct 2019 12:22:47 -0700
[brain burning together] Introduction to ES6 system
Why learn ES6
Master the connection and difference of ES3, ES5 and ES6
Getting started ES6
Learn to build ES6 compilation environment quickly
Learning ES6:
constant
Scope of action
Arrow function
Default parameters
Object agent
git
git clone https://github.com/cucygh/es6-webpack.git
cd es6-webpack && npm install
npm i
np ...
Posted by bjoerndalen on Wed, 23 Oct 2019 08:32:59 -0700
09- webpack load data file json, xml, csv
I. loading json file
Built in support for JSON parsing, that is, import Data from './data.json' will run normally by default.
1.1 add json file
demo09
|- package.json
|- webpack.config.js
|- /dist
|- bundle.js
|- index.html
|- /src
|- Hua Wencaiyun.ttf
|- icon.png
|- st ...
Posted by sweetstuff2003 on Tue, 22 Oct 2019 08:06:01 -0700
webpack advanced -- 02 -- multi page application configuration
Project file structure:
├─build
├ ├─webpack.base.js
├ ├─webpack.dev.js
├ └─webapck.prod.js
├─package.json
├
├─src
└─views
├─admin
├ ├─index.js
├ └─index.html
└─client
├─index.js
└─index.html
entry configur ...
Posted by mr666 on Mon, 21 Oct 2019 13:31:30 -0700
12 webpack auto compile code
Every time you need to compile your code, running npm run build manually becomes cumbersome. Use webpack-dev-server It can help you to compile code automatically when the code changes. It provides a simple web server and can be reloaded in real time.
I. installation
npm install --save-dev webpack-dev- ...
Posted by howler on Sat, 19 Oct 2019 10:20:23 -0700
React 16.8 change Webpack support Less file
Create project
The latest React version is 16.8.6Create a project using the create react app scaffolding toolBecause you want to use AntD in your project
Expose profile
To configure less loader, you need to expose the webpack configuration file. This requires using the eject command provided by the create react app scaffold tool. Before running ...
Posted by statrat on Fri, 18 Oct 2019 11:19:20 -0700
Web pack related configuration
//Since webback is built on nide, any legal node code is supported when configuring files.// 1. Import Path Template
const path =require('path');
// Import plug-ins that generate html pages in memory
const htmlWebpackPlugin = require("html-webpack-plugin")
// 2. Operating through modules in node To expo ...
Posted by gammaman on Fri, 11 Oct 2019 13:19:29 -0700
There's nothing trivial about the front end -- using ToolTipster in Webpack projects
Catalog
Install ToolTipster
Create prompt box components
Use the prompt box component
Reference articles
Tooltipster is a simple, easy-to-use and powerful jQuery prompt box plug-in. It is used to provide cool prompt boxes for mouse events or other keyboard events such as dragging, moving, click ...
Posted by 3s2ng on Mon, 07 Oct 2019 11:51:35 -0700
nodejs service, web pack packaged koa service
Preface
At present, the iteration of front-end update is faster and faster, and the corresponding supporting services are also developing rapidly. node service koa uses web pack packaging scheme.
install
npm install
npm run build
New project package.json
{
"name": "koa2-blog",
"version": "1.0.0",
"description": "blog",
"main": "main.js" ...
Posted by kavitam on Sat, 05 Oct 2019 01:52:50 -0700
Using echarts to display travel footprints
Preface
There has always been a dream of traveling around the world, traveling around other countries, experiencing human civilization in different countries, seeking mountains and rivers, and experiencing the great creation of the creator nature. After all, life is not only about the present, but also about poetry and distance. Over the years, ...
Posted by leeharvey09 on Thu, 03 Oct 2019 02:11:37 -0700