mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
https webpack-serve
This commit is contained in:
parent
995835a96c
commit
22c1b0627e
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,7 +7,8 @@ vwd.webinfo
|
||||
css/
|
||||
dist/
|
||||
webfonts/
|
||||
*.crx
|
||||
*.pem
|
||||
*.crx
|
||||
*.zip
|
||||
build/
|
||||
!dev-server.pem
|
||||
|
45
dev-server.pem
Normal file
45
dev-server.pem
Normal file
@ -0,0 +1,45 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDaEy1cPw07irjg
|
||||
4wUgaxshW7oQrgVoNZYRROmdU20K22L+HyG2ahW6usiWw8+6fPgVve7Y1z+/GYsK
|
||||
DhaDdY1Ket3JvZHxoAJ/+6lYY+05PhtmYnyEZzZlnuYx/tu3vyGpsXqMpzL3ZrX2
|
||||
Mh2dWE7ZXKxsyig4wSDJhBPMrW8HKXLrLR/JPFhu/nz5MpRF5LfzWU13FEfmS43s
|
||||
PEkBCn5ZxhVX4eNclQhTl7oOo5LU+KCWn+C/GPQir7pdmMoYF6D5j3qtbsq9irPe
|
||||
qR7HsM9z6DnX+L0mF31P2S6OTgLT3kuWJn9vqLUwvQWGFvSSzpw7JgGBK3eX6zE9
|
||||
2koGWP9NAgMBAAECggEAIpwCie5TykxU1RQSfzegYaXuHLGRmB1RCMKYFOjlmGCD
|
||||
EHOeZRXnBvCX3x2KfT1SHhk7q9xVeJ20LE9aEVj5qIVhZ6AXZnKPkwI8uRN61afe
|
||||
r1wYCOdcgbo7LFoXQs0pqYXKPkJW217IqB8CBjO6p9KGZumago9cBb9ZaRVpVohZ
|
||||
c6YHeatrna2mPb/EUPHdT0RHHQ5Dz2ToPjCkDtxsNHLZLekR35WIMtCBlp0xY5hb
|
||||
5h54ZxnaMihvHTLa8L/pgxGEUsP+XFpdXkM1oREzh8tDRFcUL8mUVZ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 -1,4 +1,5 @@
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const webpack = require('webpack');
|
||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
@ -6,7 +7,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin;
|
||||
|
||||
if (process.env.NODE_ENV == null) {
|
||||
if (process.env.NODE_ENV == null || process.env.WEBPACK_SERVE) {
|
||||
process.env.NODE_ENV = 'development';
|
||||
}
|
||||
const ENV = process.env.ENV = process.env.NODE_ENV;
|
||||
@ -100,8 +101,17 @@ if (ENV === 'production') {
|
||||
});
|
||||
}
|
||||
|
||||
let localSuffix = fs.existsSync('dev-server.local.pem') ? '.local' : '';
|
||||
const serve = {
|
||||
https: {
|
||||
key: fs.readFileSync('dev-server' + localSuffix + '.pem'),
|
||||
cert: fs.readFileSync('dev-server' + localSuffix + '.pem'),
|
||||
},
|
||||
};
|
||||
|
||||
const config = {
|
||||
mode: ENV,
|
||||
serve: serve,
|
||||
entry: {
|
||||
'main': './src/app/main.ts',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user