🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

webpack_package

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack_package

widget for webpack

1.2.6
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

基于组件化开发的webpack脚手架。

##安装步骤 npm install webpack_package

npm install

##快速开始 1. 开发中构建

$npm run w

2. 初始化开发目录

$npm run init

回答下面问题

3. 引入组件

PACKAGE * as 你的组件名 from 你的组件名

比如,这里要引入widgets中的checkBox组件

此处输入图片的描述

4. 上线前打包

$npm run p

##注意点 1. 目录形式

目录形式

2. widgetsList页面是项目所有组件预览的页面

##使用到的插件 1. 初始化开发目录,plugin-package-init

2. 组件加载,widgets-loader

Keywords

webpack

FAQs

Package last updated on 10 Feb 2017

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