🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

generator-webpack-spa

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-webpack-spa

可以快速生成一个webpack项目。目前集成了babel、自动合成雪碧图、rem转换、内联flexiblejs等功能。

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

generator-webpack-spa

可以快速生成一个webpack项目。目前集成了babel、自动合成雪碧图、rem转换、内联flexiblejs等功能。

安装

generator-webpack-spa 是基于yeoman的一个插件,所以需要先安装yeoman

$ npm install -g yo

然后安装本插件:

$ npm install -g generator-webpack-spa

使用

在目标目录下执行命令,生成项目文件

$ yo webpack-spa

然后安装依赖

$ npm install

启动开发服务器

$ npm run dev

打包

$ npm run build

Keywords

yeoman-generator

FAQs

Package last updated on 07 Sep 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