Skip to content

Commit 745e5a1

Browse files
committed
configure webpack/webpack.common.js to copy assets folder to targt web folder to be able to served from application
1 parent f2f5b7e commit 745e5a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

webpack/webpack.common.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ module.exports = (options) => ({
6767
{ from: './src/main/webapp/favicon.ico', to: 'favicon.ico' },
6868
{ from: './src/main/webapp/manifest.webapp', to: 'manifest.webapp' },
6969
// jhipster-needle-add-assets-to-webpack - JHipster will add/remove third-party resources in this array
70-
{ from: './src/main/webapp/robots.txt', to: 'robots.txt' }
70+
{ from: './src/main/webapp/robots.txt', to: 'robots.txt' },
71+
{ from: './src/main/webapp/app/ngx-admin/assets', to: 'assets' }
7172
]),
7273
new webpack.ProvidePlugin({
7374
$: "jquery",
74-
jQuery: "jquery"
75+
jQuery: "jquery",
76+
echarts: "echarts"
7577
}),
7678
new HtmlWebpackPlugin({
7779
template: './src/main/webapp/index.html',

0 commit comments

Comments
 (0)