moved Angular routes to separate module; load Webpack bundle before other main scripts

This commit is contained in:
alecmerdler 2017-01-20 16:24:55 -08:00
parent 8dc9cf21d7
commit 615e233671
14 changed files with 186 additions and 167 deletions

View file

@ -39,27 +39,9 @@ module.exports = function(config) {
preprocessors: {
'static/lib/ngReact/react.ngReact.min.js': ['webpack'],
'static/lib/angular-moment.min.js': ['webpack'],
// 'static/js/**/*.ts*': ['karma-typescript'],
'static/js/**/*.ts*': ['webpack'],
},
webpack: {
resolve: webpackConfig.resolve,
externals: webpackConfig.externals,
module: {
loaders: [
{
test: /\.tsx?$/,
loader: "ts-loader",
exclude: /node_modules/
},
{
test: /\.scss$/,
loaders: ['style', 'css', 'sass'],
exclude: /node_modules/
},
]
}
},
webpack: webpackConfig,
webpackMiddleware: {
stats: 'errors-only'
},