@aplaline/vue-cli-plugin-disable-hashed-filenames

1.0.3 • Public • Published

Vue CLI plugin for disabling hashing of filenames

It is often that we need to deploy the assets with predictible file names. That happens especially with environments like content management systems (Sitecore, AEM, Wordpress and the like).

By default Vue CLI makes use of hashes in filenames. And that is great since also the index.html is also adjusted to include the proper files and if you're deploying all the artifacts as-is this is definitelly the way to go. However, in the rare projects where artifacts need to be named predictably this plugin is here to help.

Configuration

There is one configuration option that allows you to turn the plugin on or off:

vue.config.js

module.exports = {
  pluginOptions: {
    disableHashedFilenames: true
  }
}

If you set disableHashedFilenames to false this plugin will be basically disabled and the default behavior will be in effect (that is filenames will include hashes).

Readme

Keywords

Package Sidebar

Install

npm i @aplaline/vue-cli-plugin-disable-hashed-filenames

Weekly Downloads

60

Version

1.0.3

License

ISC

Unpacked Size

2.11 kB

Total Files

3

Last publish

Collaborators

  • padcom