Skip to content

Commit ce808d9

Browse files
committed
Finally got the material2 config to build. Had to change a few material2 things but got it working, builds are not the fastest because of using ts-loader. I definitiely don't like that
1 parent d16bb43 commit ce808d9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

+8-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ export const webpackMaterialConfig = {
5050
// ]
5151
alias: aliasMap
5252
},
53+
sassLoader: {
54+
includePaths: [
55+
ngAppResolve('./src/demo-app/style')
56+
]
57+
},
5358
debug: true,
5459
context: path.resolve(__dirname, './'),
5560
//SAVE entry: {
@@ -59,7 +64,7 @@ export const webpackMaterialConfig = {
5964
// },
6065
entry: {
6166
main: [ngAppResolve('./src/demo-app/main.ts')],
62-
// core: ngAppResolve('./src/core/core.ts'),
67+
vendor: ngAppResolve('./src/demo-app/vendor.ts')
6368
// main: ngAppResolve('./src/e2e-app/main.ts')
6469
},
6570
output: {
@@ -117,9 +122,11 @@ export const webpackMaterialConfig = {
117122
// Defaults to the compiler's setting
118123
debug: true
119124
}),
125+
new webpack.optimize.CommonsChunkPlugin({name: 'vendor'}),
120126
new ForkCheckerPlugin(),
121127
new HtmlWebpackPlugin({
122128
template: ngAppResolve('./src/demo-app/index.html'),
129+
chunksSortMode: 'dependency'
123130
}),
124131
],
125132
node: {

0 commit comments

Comments
 (0)