Skip to content

Commit

Permalink
fix(webpack-copy): copies files from public/ directory to dist/ and p…
Browse files Browse the repository at this point in the history
…reserves references
  • Loading branch information
jkuri committed Aug 2, 2016
1 parent 20bfdef commit b11bc94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addon/ng2/models/webpack-build-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ export function getWebpackCommonConfig(projectRoot: string, sourceDir: string) {
filename: 'inline.js',
sourceMapFilename: 'inline.map'
}),
new CopyWebpackPlugin([{from: path.resolve(projectRoot, './public'), to: path.resolve(projectRoot, './dist')}])
new CopyWebpackPlugin([{
context: path.resolve(projectRoot, './public'),
from: '**/*',
to: path.resolve(projectRoot, './dist')
}])
],
node: {
global: 'window',
Expand Down

0 comments on commit b11bc94

Please sign in to comment.