在使用相关方案时, 请在项目中添加 babelpostcss 基础配置文件

  • 添加 ${app_root}/.babelrc 文件

具体根据实际情况添加相关 babel 插件配置,以下仅仅是举例:

{
  "presets": [["env",{ "modules": false }]],
  "plugins": [
    "transform-object-rest-spread",
    "syntax-dynamic-import",
    "transform-object-assign"
  ],
  "comments": false
}
  • 添加 ${app_root}/postcss.config.js 文件

具体根据实际情况添加 postcss 配置,以下仅仅是举例:

'use strict';
module.exports = {
  plugins: [
    require('autoprefixer')
  ]
};

Author: sky
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source sky !
 Previous
Flutter iOS 混合工程实践 Flutter iOS 混合工程实践
在 Flutter 混合工程体系 一文中,阐述了Flutter 三种开发模式,在实际业务中搭建持续集成时,我们更希望本地开发使用混合模式,持续集成使用解耦模式, 主要是解决以下两个问题: 混合模式:开发调试方便,包括热更新, Native 与 Flutter 开发源码断点调试 解耦模式:不侵入...
2020-04-18 sky
Next 
全部配置项 全部配置项
webpack.config.js 参数配置说明// ${app_root}/webpack.config.js module.exports = { framework: 'html' entry:{ } ......
2020-04-18 sky