结合主流脚手架使用

使用 create-react-appvue-cli 初始化项目:

# CRA
npm init react-app my-app

# Vue CLI
npm i @vue/cli -g
vue create my-app

项目根目录创建文件 webpack.config.js

// CRA
module.exports = require('react-scripts/config/webpack.config')('development');
// Vue CLI
module.exports = require('@vue/cli-service/webpack.config');

好了,就这些 🎉

svrx --webpack

image

image

结合 插件 使用更香哦 (ˇˍˇ)

Copyright © 2019, NetEase, Inc. all right reserved,powered by GitbookFile Modify: 2019-12-18 15:48:24

results matching ""

    No results matching ""