Skip to content

Commit

Permalink
fix: Set fs building/polyfill empty for better package support (angul…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLarkInn authored and hansl committed Aug 8, 2016
1 parent ace720b commit 560ae8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/ng2/models/webpack-build-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ export function getWebpackCommonConfig(projectRoot: string, sourceDir: string) {
}),
new CopyWebpackPlugin([{
context: path.resolve(projectRoot, './public'),
from: '**/*',
from: '**/*',
to: path.resolve(projectRoot, './dist')
}])
],
node: {
fs: 'empty',
global: 'window',
crypto: 'empty',
module: false,
Expand Down
1 change: 1 addition & 0 deletions addon/ng2/models/webpack-build-development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const getWebpackDevConfigPartial = function(projectRoot: string, sourceDi
resourcePath: path.resolve(projectRoot, `./${sourceDir}`)
},
node: {
fs: 'empty',
global: 'window',
crypto: 'empty',
process: true,
Expand Down
1 change: 1 addition & 0 deletions addon/ng2/models/webpack-build-production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, sourceD
customAttrAssign: [/\)?\]?=/]
},
node: {
fs: 'empty',
global: 'window',
crypto: 'empty',
process: true,
Expand Down
1 change: 1 addition & 0 deletions addon/ng2/models/webpack-build-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const getWebpackTestConfig = function(projectRoot, sourceDir) {
resourcePath: `./${sourceDir}`
},
node: {
fs: 'empty',
global: 'window',
process: false,
crypto: 'empty',
Expand Down

0 comments on commit 560ae8f

Please sign in to comment.