Detailed webpack4 multi-entry configuration

Detailed webpack4 multi-entry configuration This article mainly focuses on the multi-entry configuration, hoping to improve the development efficiency and package the code when developing web pages without a framework.What needs to be improved in this article, and I hope you can give more advice. Key ...

Posted on Sat, 18 Jan 2020 18:14:40 -0800 by Quinton1337

vue uses Jade template to write html and stylus to write css

The daily work is to use vue to develop pages and webapps. If you write more, you want to lazy and simplify various writing methods. So you use jade to write html and stylus to write css, which saves a lot of steps and improves efficiency. Installation package: // Install jade package npm install jade jade-loader --save-dev // I ...

Posted on Tue, 17 Dec 2019 15:13:42 -0800 by cswells

Write a Vue calendar component by hand

The project needs a calendar component. The product dog dislikes that the component provided by the third party is too ugly and has incomplete functions. Why does the product have a gun with a knife and product theory. But I can only write one by myself. After I post this blog, I will quit. I will never have more BB products.Html=>`<templ ...

Posted on Fri, 15 Nov 2019 14:18:49 -0800 by terrabull

Automatically adding version number by using gulp4.x to update static resource version in front end

Guide reading Every time the project is published, there will be caching problems, resulting in page not updating, especially for wechat browser, the caching situation is more serious. Then using gulp to add version number to js and css automatically can solve the problem of cache. There are generally two methods in ...

Posted on Sat, 09 Nov 2019 11:46:02 -0800 by packland

Front end technology frontier 2

wx.showToast({ title: 'Success', icon: 'success', duration: 2000 }) wx.showModal({ title: 'Tips', content: 'This is a modal pop-up window', success: function(res) { if (res.confirm) { console.log('User click OK') } else if (res.cancel) { console.log('User click Cancel') } } }) <template lan ...

Posted on Fri, 08 Nov 2019 06:51:31 -0800 by sssphp

Front end technology frontier 6

Data cache setStorageSync and getStorage //Get input value getInput: function(e) { var self = this; self.setData({ storage: e.detail.value }) }, //Store input values saveInput: function() { var self = this; wx.setStorageSync('storage', self.data.storage) }, output: function () { var self = ...

Posted on Wed, 06 Nov 2019 13:54:08 -0800 by endlyss

Webback4 detailed tutorial, from scratch to build react scaffold

Css Install loader yarn add style-loader css-loader -D To configure config/webpack.common.js ... function webpackCommonConfigCreator(options){ ... return { ... module: { rules: [ ... + { ...

Posted on Wed, 30 Oct 2019 22:09:32 -0700 by majik_sheff

Plug-ins to be used in the project optimization process

xtravel-pc-v1 erp PC front-end project Dependent installation npm install element-ui --save With the help of babel-plugin-component, we can only introduce the required components in order to reduce the size of the project. npm install babel-plugin-component -dev npm install vuex --save Precompiled language npm install sass --save npm install cs ...

Posted on Thu, 10 Oct 2019 08:25:30 -0700 by ponsho

IV. Import and Expansion Instructions

@ Rules and instructions @import Sass extends the CSS@import rule to allow it to import SCSS or Sass files. All SCSS or Sass files imported will be merged together into the same CSS file Any variable or mixins defined in the import file can be used in the main file. Typically, @import looks for the Sass file and imports it, but in the follow ...

Posted on Mon, 09 Sep 2019 23:39:00 -0700 by BIOSTALL

Vue-Cli3+Antd-based mid-background management model-01-using Vue CLI3 to quickly create projects

First, Preface From the end of last year to the beginning of this year, a background management framework was built using Vue2.x+elementUI. The purpose is to build the front-end engineering, customize the Vue-cli2.x source code and add some functions. By learning the source code of cli and scaffolding ...

Posted on Tue, 06 Aug 2019 00:55:19 -0700 by __greg