Skip to content

Commit b11bc94

Browse files
committed
fix(webpack-copy): copies files from public/ directory to dist/ and preserves references
1 parent 20bfdef commit b11bc94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

addon/ng2/models/webpack-build-common.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ export function getWebpackCommonConfig(projectRoot: string, sourceDir: string) {
7373
filename: 'inline.js',
7474
sourceMapFilename: 'inline.map'
7575
}),
76-
new CopyWebpackPlugin([{from: path.resolve(projectRoot, './public'), to: path.resolve(projectRoot, './dist')}])
76+
new CopyWebpackPlugin([{
77+
context: path.resolve(projectRoot, './public'),
78+
from: '**/*',
79+
to: path.resolve(projectRoot, './dist')
80+
}])
7781
],
7882
node: {
7983
global: 'window',

0 commit comments

Comments
 (0)