mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
30 lines
898 B
JavaScript
30 lines
898 B
JavaScript
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
// Use library so that the background script can invoke the content
|
|
// script multiple times. Alternatively, webpack is preventing us to do so.
|
|
'content-script': {
|
|
import: 'projects/shell-chrome/src/app/content-script.ts',
|
|
library: {
|
|
name: '___devToolsContentScript',
|
|
type: 'umd',
|
|
umdNamedDefine: true,
|
|
},
|
|
},
|
|
'ng-validate': 'projects/shell-chrome/src/app/ng-validate.ts',
|
|
background: 'projects/shell-chrome/src/app/background.ts',
|
|
backend: 'projects/shell-chrome/src/app/backend.ts',
|
|
devtools: 'projects/shell-chrome/src/devtools.ts',
|
|
},
|
|
output: {
|
|
chunkLoadingGlobal: '___ngDevToolsRuntime',
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
LATEST_SHA: JSON.stringify(process.env.LATEST_SHA),
|
|
},
|
|
}),
|
|
],
|
|
};
|