Webpack 使用babel转换(ES6)创建一个最小的webpack配置文件。

用法 启动命令面板,并查找Webpack Create。这将:

创建一个webpack.config.js文件,其中包含babel转换。 ext查找app或src文件夹以设置入口点。并为bundle路径设置dist或out。 使用babel和es2015库更新项目package.json。 默认情况下,如果找不到文件夹,则使用app和dist文件夹。

图像

图像

图像

发展 克隆repo并在VSCODE中打开单个ext文件夹。 运行npm i 通过VSCODE debug启动调试。

WebpackCreates a minimal webpack config file with babel transpiling ES6UsageLaunch the command pallete and look for Webpack Create This willCreate a webpackconfigjs file with babel transpiling The ext

原文地址: http://www.cveoy.top/t/topic/bJ2u 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录