|
|
|
@ -5,8 +5,6 @@ MiniCssExtractPlugin = require('mini-css-extract-plugin'), |
|
|
|
runConfig = require('./webpack.run.base.js'), |
|
|
|
helpers = require('./helpers'); |
|
|
|
|
|
|
|
var CircularDependencyPlugin = require('circular-dependency-plugin'); |
|
|
|
|
|
|
|
helpers.removeLoaders(runConfig, ['scss', 'ts']); |
|
|
|
|
|
|
|
module.exports = webpackMerge(runConfig, { |
|
|
|
@ -97,14 +95,6 @@ module.exports = webpackMerge(runConfig, { |
|
|
|
new ngToolsWebpack.AngularCompilerPlugin({ |
|
|
|
tsConfigPath: './tsconfig.json', |
|
|
|
entryModule: 'app/app.module#AppModule' |
|
|
|
}), |
|
|
|
|
|
|
|
new CircularDependencyPlugin({ |
|
|
|
onDetected({ module: webpackModuleRecord, paths, compilation }) { |
|
|
|
// `paths` will be an Array of the relative module paths that make up the cycle
|
|
|
|
// `module` will be the module record generated by webpack that caused the cycle
|
|
|
|
console.log(paths.join(' -> ')) |
|
|
|
} |
|
|
|
}) |
|
|
|
] |
|
|
|
}); |