New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jq3-webpack4

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jq3-webpack4

采用JQ3 webpack4实现JQ多页面打包压缩更加具体的模块化以及代码首屏利用率等功能

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

WebPack4+JQ3 教程

这个工具所带有的优点:使得JQ拥有组件化 压缩代码 支持proxy 支持SASS 支持JS文件按需加载 等

Config.js文件介绍

在src/path下面生成文件之后需要在Config.path下进行声明
port 用于更换端口号
proxy进行反响代理
一些小技巧

document.addEventListener('click',async ()=>{
const { default: func } = await import( /* webpackPrefetch: true */ './click.js')
func()
将来网络带框有空闲的时候也会加载不一点要点击事件
})
可以增加首屏加载速度提高代码利用率

FAQs

Package last updated on 27 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts