b13-rocket 0.8.4 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -116,7 +116,7 @@ $ yarn set version berry
116
116
  // update node dependencies
117
117
  $ yarn install
118
118
  $ yarn remove b13-build-cli
119
- $ yarn add "b13-build-cli@ssh://git@code.b13.com/public-projects/rocket-cli.git#vite5.2"
119
+ $ yarn add b13-rocket
120
120
  ```
121
121
 
122
122
  ### Update .gitignore
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "b13-rocket",
3
3
  "description": "FE CLI build tool",
4
- "version": "0.8.4",
4
+ "version": "0.8.6",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=v16.13.0",
@@ -21,7 +21,14 @@ export const defaultViteConfig = defineConfig({
21
21
  rollupOptions: {
22
22
  output: {
23
23
  entryFileNames: '[name].js',
24
- assetFileNames: '[name][extname]',
24
+ assetFileNames: ((assetInfo) => {
25
+ // don't add filename hash for external css files starting 'external-'
26
+ const regex = /external-.*?\.(?:css|scss)/
27
+ if (regex.test(assetInfo.originalFileName)) {
28
+ return '[name][extname]';
29
+ }
30
+ return 'assets/[name].[hash][extname]';
31
+ }),
25
32
  manualChunks: (chunkPath) => {
26
33
  const fileName = path.basename(chunkPath);
27
34
  // add extra chunck for all css files starting with 'external-'