Cleaning deployment related stuff

This commit is contained in:
Jori Lallo 2017-02-09 21:55:36 -08:00
parent 8a489ce18e
commit 0cd285097f
10 changed files with 4 additions and 24 deletions

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
dist/*
dist
node_modules/*
.env
npm-debug.log
.DS_Store
.DS_Store

19
dist/index.html vendored
View File

@ -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.

View File

@ -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",

View File

@ -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')),