diff options
| author | AAGaming <aa@bigdumb.gq> | 2022-05-28 21:52:51 -0400 |
|---|---|---|
| committer | AAGaming <aa@bigdumb.gq> | 2022-05-28 21:52:51 -0400 |
| commit | 6e73b2796137984e5290a5d5f3e381362f21bfea (patch) | |
| tree | b88ff7a1f4df0e0f5f94c645f171489611b5aa8a /rollup.config.js | |
| parent | adb8a84d2c313bedd6d6e46408056c3a2677ddb3 (diff) | |
| parent | a5d491256fd058796162ef9e234b7b5fea6b6ef0 (diff) | |
| download | decky-bazzite-buddy-6e73b2796137984e5290a5d5f3e381362f21bfea.tar.gz decky-bazzite-buddy-6e73b2796137984e5290a5d5f3e381362f21bfea.zip | |
Merge branch 'main' of github.com:SteamDeckHomebrew/decky-plugin-template
Diffstat (limited to 'rollup.config.js')
| -rw-r--r-- | rollup.config.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js index c43c88c..8717908 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -4,6 +4,9 @@ import { nodeResolve } from '@rollup/plugin-node-resolve'; import replace from '@rollup/plugin-replace'; import typescript from '@rollup/plugin-typescript'; import { defineConfig } from 'rollup'; +import importAssets from 'rollup-plugin-import-assets'; + +import { name } from "./plugin.json"; export default defineConfig({ input: './src/index.tsx', @@ -16,6 +19,9 @@ export default defineConfig({ preventAssignment: false, 'process.env.NODE_ENV': JSON.stringify('production'), }), + importAssets({ + publicPath: `http://127.0.0.1:1337/plugins/${name}/` + }) ], context: 'window', external: ['react', 'react-dom'], |
