【发布时间】:2019-01-10 12:33:04
【问题描述】:
我有一个具有这种结构的项目:
src
|- index.pug
| - layout
| |- index.less
| - scripts
| |- index.js
现在,当我运行 parcel build src/index.pug 时,所有文件都被捆绑在一起,我在分发文件夹中找到了这个:
dist
|- index.html
|- index.12345.css
|- index.12345.js
当我被监视时:
dist
|- index.html
|- layout
| |- index.12345.css
|- scripts
| |- index.12345.js
所以,我的问题是:我可以使用 ParcelJS 指定我的 css、js 和图像的输出路径吗?
【问题讨论】:
-
不可以,非入口点资产被散列并移动到根目录(文件夹结构被展平):github.com/parcel-bundler/parcel/issues/872
标签: parceljs