mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
* build: set latest SHA commit as system environment variable for chrome build * build: set latest SHA commit as sys variable for demo build * feat: create application environment abstraction to reference environment variables inside the ng-devtools library * test: fix devtools component test
21 lines
599 B
JavaScript
21 lines
599 B
JavaScript
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
'content-script': 'projects/shell-chrome/src/app/content-script.ts',
|
|
'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: {
|
|
jsonpFunction: '___ngDevToolsRuntime',
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
LATEST_SHA: JSON.stringify(process.env.LATEST_SHA),
|
|
},
|
|
}),
|
|
],
|
|
};
|