如何在 Webpack 中提取 bundle.js 文件? [英] How to extract the bundle.js file in Webpack?

查看:38
本文介绍了如何在 Webpack 中提取 bundle.js 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有不记得我第一次做的事情的问题.

I have this problem of not remembering the things I did the first time.

在我能够提取 bundle.js 文件并通过 ftp 服务器上传之前,无需通过 heroku 进行部署.

Before I was able to extract the bundle.js file and upload through a ftp server without going through the hassle of deploying through heroku.

推荐答案

webpack 生成静态文件并将它们放在 webpack 配置文件中定义的目录中.因此,您只需在终端中运行 webpack 即可生成文件.之后,您可以使用 FTP 上传它们.

webpack generates static files and puts them to a directory defined in your webpack config file. So, you can just run webpack in Terminal and this will generate files. After that, you can upload them using FTP.

这篇关于如何在 Webpack 中提取 bundle.js 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆