【发布时间】:2020-10-05 14:35:54
【问题描述】:
如何将编译后的 babel 文件输出到与文件相同的级别。我目前有我的脚本来读取源文件夹并将编译后的文件输出到一个单独的文件夹中,该文件夹使用我的 package.json 中的代码保留文件夹结构
"build:lib": "./node_modules/.bin/babel src/components/ --out-dir lib",
假设我在 src/components/Button/Button.js 中有一个 react 组件。我想在 src/components/Button/Button.minified.js 中编译缩小版
【问题讨论】:
标签: javascript reactjs npm