Cleaning deployment related stuff
This commit is contained in:
parent
8a489ce18e
commit
0cd285097f
|
@ -1,4 +1,4 @@
|
|||
dist/*
|
||||
dist
|
||||
node_modules/*
|
||||
.env
|
||||
npm-debug.log
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Beautiful Atlas</title>
|
||||
<link href="/static/styles.fe52c89d9dc49fc68561.css" rel="stylesheet"></head>
|
||||
<body style='display: flex; width: 100%'>
|
||||
<div id="root" style='display: flex; width: 100%'></div>
|
||||
<script type="text/javascript">
|
||||
// if ('serviceWorker' in navigator) {
|
||||
// navigator.serviceWorker.register('/service-worker.js')
|
||||
// .then(function(reg) {
|
||||
// console.log('SW registration succeeded');
|
||||
// }).catch(function(error) {
|
||||
// console.log('SW registration failed: ' + error);
|
||||
// });
|
||||
// };
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/bundle.fe52c89d9dc49fc68561.js"></script></body>
|
||||
</html>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js --progress",
|
||||
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js",
|
||||
"build:analyze": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js --json | webpack-bundle-size-analyzer",
|
||||
"build": "npm run clean && npm run build:webpack",
|
||||
"start": "node index.js",
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
// Load .env
|
||||
require('dotenv').config();
|
||||
require('dotenv').config({ silent: true });
|
||||
|
||||
const definePlugin = new webpack.DefinePlugin({
|
||||
__DEV__: JSON.stringify(JSON.parse(process.env.NODE_ENV !== 'production')),
|
||||
|
|
Reference in New Issue