generator-react-webpack
2021-05-18 22:32
标签:ref generator dir react last font 新建 base name 初始化: 配置全局环境 npm install -g yo npm install -g generator-react-webpack 创建新组件 generator-react-webpack 标签:ref generator dir react last font 新建 base name 原文地址:http://www.cnblogs.com/insight0912/p/7723695.html新建项目文件夹
mkdir project
cd project
yo react-webpack
yo react-webpack:component componentName
(新建componentName.js,componentName.css)
添加postcss规则
npm i -S autoprefixer
cfg/base.js下添加规则:
plugins:[
require(‘autoprefixer‘)({
browsers: [‘last 2 versions‘, ‘ie >= 8‘]
})]
上一篇:JS中常用的语法
下一篇:PHP程序守护进程化
文章标题:generator-react-webpack
文章链接:http://soscw.com/index.php/essay/87387.html