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:
parent
d5a74af024
commit
c55e9f2d12
15 changed files with 590 additions and 505 deletions
|
@ -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'
|
||||
|
|
Reference in a new issue