Comments (4)
没有使用ewa build打包正式环境,开启webpack混淆压缩功能,实现了代码混淆,具体步骤:
npm i -D uglifyjs-webpack-plugin
修改ewa.config.js
'use strict';
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
...
// webpack 插件
plugins: [
new UglifyJsPlugin()
],
希望留给后来人
from ewa.
ewa build
会自动混淆并压缩所有代码。
可以尝试关闭微信开发者工具的 开启es6转es5
配置后,再试试
from ewa.
@xiaogouxo 关闭微信开发者工具的开启es6转es5
选项之后,可以解决问题么?
from ewa.
@lyfeyaj 关闭 开启es6转es5
还是一样,部分组件功能异常,没有异常抛出。目前使用npm start加插件解决压缩混淆的需求,感谢!
from ewa.
Related Issues (20)
- 怎么实时编译 HOT 2
- 是否可以不引入regenerator-runtime HOT 1
- 初始化项目 HOT 4
- 请问如何在ewa项目下使用 towxml ? HOT 4
- scss/less文件没有编译 HOT 1
- 页面里不支持直接 编译 .scss 文件 吗 HOT 3
- Queue队列不应该先入先出吗 HOT 1
- ewa build dist 缺少vendors.js HOT 1
- json 文件不支持 post loader 处理 HOT 5
- copy-webpack-plugin 插件没有兼容 Windows? HOT 5
- 添加一个引入 vant-weapp 的 demo可以吗? HOT 5
- ewa init 报错 HOT 3
- windows上无法运行 HOT 1
- 可以给命令的路径加上双引号吗 HOT 1
- 原生微信小程序初始化报错 HOT 7
- 部分vant 组件引入失败
- 支持wxs HOT 2
- wxml使用html-loader压缩的问题
- 您好,感谢你分享的那么好的脚手架!问下关于Promise和async await的问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ewa.