1.0.1 • Published 5 years ago

typoscript-hash-webpack-plugin v1.0.1

Weekly downloads
7
License
ISC
Repository
-
Last release
5 years ago

typoscript-hash-webpack-plugin

Cache busting for webpack inside TYPO3

npm install --save-dev typoscript-hash-webpack-plugin

Based heavily on hash-webpack-plugin.

Usage

This plugin creates a typoscript constant file that can be imported into a TYPO3 config. The file contains the main webpack hash.

// webpack.config.js

const TyposcriptHashPlugin = require('typoscript-hash-webpack-plugin');

module.exports = {
  ...
  plugins: [
    new TyposcriptHashPlugin({
    	path: './',
    	fileName: 'constants-hash.txt'
    })
  ]
};

Output

asset {
    hash = 69cad826770a343dcaa3
}