新手问题 webpacker 打包出来的官方实例 big?

Jesse_Fan · September 07, 2017 · 1206 hits

rails new xx --webapck=react 添加在 pack 这个文件里面的 hello_react.jsx

rails webpacker:compile 打包出来的文件怎么有 2.1M 之大。。。

我看了下 package.json 里面把一些构建工具包 放在 dev 里面 重新安装依赖

是不是需要自己再添加压缩配置? 并且现在 webpacker3+ 基本都是直接 import 已经配置好的 js 文件了?

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.