angular/shell-dev-webpack.config.js
AleksanderBodurri a7ea578507 feat(devtools): display latest commit SHA in application (rangle/angular-devtools#243)
* 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
2020-04-02 16:23:03 -07:00

11 lines
208 B
JavaScript

const webpack = require('webpack');
module.exports = {
plugins: [
new webpack.DefinePlugin({
'process.env': {
LATEST_SHA: JSON.stringify(process.env.LATEST_SHA),
},
}),
],
};