how to package static resource #14658
Answered
by
msujew
sunchuanstc
asked this question in
Q&A
-
Hi, I have some static resource like .pdf、.png in my-theia-extension/static, how can i package the static resource into theia/examples/browser/lib? |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Dec 20, 2024
Replies: 1 comment
-
Hey @sunchuanstc, we usually use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sunchuanstc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @sunchuanstc,
we usually use the
CopyWebpackPlugin
to copy resources to the destination directory. IIRC it is already used by the generatedgen-webpack.config.js
used by every Theia build. You can extend thewebpack.config.js
to add your own scripts/plugins to the webpack build process.