Skip to content

Commit

Permalink
Merge pull request #4038 from relative-ci/update-rollup-documentation
Browse files Browse the repository at this point in the history
doc(rollup-plugin): Add file names options
  • Loading branch information
vio committed Nov 21, 2023
2 parents 30b8342 + ef67578 commit 3cddd21
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/rollup-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ const { bundleStats } = require('rollup-plugin-bundle-stats');

module.exports = {
...,
output: {
assetFileNames: 'assets/[name].[hash][extname]',
chunkFileNames: 'assets/[name].[hash].js',
entryFileNames: 'assets/[name].[hash].js',
},
plugins: [
bundleStats()
]
Expand All @@ -73,6 +78,15 @@ const { bundleStats } = require('rollup-plugin-bundle-stats');

module.exports = {
...,
build: {
rollupOptions: {
output: {
assetFileNames: 'assets/[name].[hash][extname]',
chunkFileNames: 'assets/[name].[hash].js',
entryFileNames: 'assets/[name].[hash].js',
},
},
},
plugins: [
bundleStats()
]
Expand Down

0 comments on commit 3cddd21

Please sign in to comment.