![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
broccoli-prepend-commit
Advanced tools
A broccoli plugin to append git commit hash of the build at top of all html, css and js files
A broccoli plugin to prepend git commit hash of the source at top of all built html, css and js files. The present HEAD commit hash of your project will be added to the top of all built html, css and js files
yarn add broccoli-prepend-commit
Then use it as plugin in your brocfile.js
(or any equivalent built config that uses broccoli)
const bpc = require('broccoli-prepend-commit');
const tree = 'root';
module.exports = bpc(tree);
For ember-cli-build.js
/* eslint-env node */
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const bpc = require('broccoli-prepend-commit')
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
// Add options here
});
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
return bpc(app.toTree())
};
FAQs
A broccoli plugin to append git commit hash of the build at top of all html, css and js files
The npm package broccoli-prepend-commit receives a total of 2 weekly downloads. As such, broccoli-prepend-commit popularity was classified as not popular.
We found that broccoli-prepend-commit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.