moved modules to typescript. Tell Webpack to use global window.angular object in order to migrate components gradually into bundle

This commit is contained in:
alecmerdler 2017-01-19 00:53:38 -08:00
parent d5a74af024
commit c55e9f2d12
15 changed files with 590 additions and 505 deletions

View file

@ -28,6 +28,7 @@ module.exports = function(config) {
'static/lib/**/*.js',
// Application resources
'static/js/quay.module.ts',
'static/js/**/*.js',
// Tests
@ -44,7 +45,21 @@ module.exports = function(config) {
},
webpack: {
resolve: webpackConfig.resolve,
module: webpackConfig.module,
externals: webpackConfig.externals,
module: {
loaders: [
{
test: /\.tsx?$/,
loader: "ts-loader",
exclude: /node_modules/
},
{
test: /\.scss$/,
loaders: ['style', 'css', 'sass'],
exclude: /node_modules/
},
]
}
},
webpackMiddleware: {
stats: 'errors-only'