node.js - Parcel Bundler 不添加内容哈希
问题描述
我的代码是:
const Bundler = require('parcel-bundler');
const path = require('path');
const options = {
contentHash: true,
minify: true
};
(async function() {
const bundler = new Bundler(path.join(__dirname, '../sass/main.scss'), options);
await bundler.bundle();
})();
输出只是在目录中main.css
,但文件名上没有散列。为什么不工作?main.js
./dist
contentHash: true
谢谢。
解决方案
推荐阅读
- c# - System.runtime.interopservices.runtimeinformation
- google-apps-script - 如何允许 Google AppScript 中的 Cors 标头发出 XMLHttpRequest?
- highcharts - 使用 x 轴滚动条滚动工具提示显示在其他地方 gnatt highcharts
- git - 如何从最后一个匹配的提交消息中获取合并到分支中的所有 git 分支
- kubernetes - 在不替换整个集群的情况下更新数字海洋 kubernetes 集群的节点大小
- vue.js - 如何在构建时安装 vue 库的内部组件?
- excel - 如何根据VBA中数组的索引选择表中的列?
- android-testing - 具有动态功能模块的 android 应用程序的端到端测试。如何?
- java - firebase 身份验证问题,使用 android studio,未发送代码
- ios - 如何使用 NSCoding 作为数据库解决方案实现过滤功能?