8000 fix(webpack-copy): copies files from public/ directory to dist/ and p… · mikebellcoder/angular-cli@b11bc94 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 5 additions & 1 deletion
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)
0