-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
- Loading branch information
Showing
5 changed files
with
37 additions
and
30 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* extracted by css-entry-points-plugin */ | ||
@import './init-DVBqS-jx.chunk.css'; | ||
@import './init-hhtidmm4.chunk.css'; | ||
@import './logger-B0wUvUiR.chunk.css'; | ||
@import './NcActionButton-1r3w9zkv.chunk.css'; | ||
@import './NcActionLink-CRpLQTQ1.chunk.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { createAppConfig } from '@nextcloud/vite-config' | ||
import { readFileSync } from 'node:fs' | ||
import { join } from 'node:path' | ||
|
||
const isProduction = process.env.NODE_ENV === 'production' | ||
const plyrIcons = readFileSync( | ||
join(__dirname, 'node_modules', 'plyr', 'dist', 'plyr.svg'), | ||
{ encoding: 'utf8' }, | ||
) | ||
|
||
export default createAppConfig( | ||
{ | ||
main: 'src/main.js', | ||
init: 'src/init.ts', | ||
}, | ||
{ | ||
replace: { | ||
PLYR_ICONS: JSON.stringify(plyrIcons), | ||
}, | ||
minify: isProduction, | ||
// ensure that every JS entry point has a matching CSS file | ||
createEmptyCSSEntryPoints: true, | ||
// Make sure we also clear the CSS directory | ||
emptyOutputDirectory: { | ||
additionalDirectories: ['css'], | ||
}, | ||
}, | ||
) |