Skip to content

Commit

Permalink
fix(build): include ?raw data to bundle
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Nov 25, 2023
1 parent 0a5e971 commit 14239cb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ export default defineConfig((env) => {
nodeExternalsOptions: {
// for subpath imports like '@nextcloud/l10n/gettext'
include: [/^@nextcloud\//],
// we should externalize vue SFC dependencies
exclude: [/^vue-material-design-icons\//, /\.vue(\?|$)/],
exclude: [
// we should externalize vue SFC dependencies
/^vue-material-design-icons\//,
/\.vue(\?|$)/,
// and bundle raw data, e.g., raw SVGs
/\?raw$/
],
},
// Inject our translations
replace: {
Expand Down

0 comments on commit 14239cb

Please sign in to comment.