const path = require('path');

const versionPath = 'version/' + new Date().getTime() + '/';
const publicPath = '/';  //change if site is running in a subfolder on the server

module.exports = {
	build: {
		env: {
			NODE_ENV: JSON.stringify( 'production' ),
			VERSIONED_STATIC_ROOT: JSON.stringify( publicPath + versionPath + 'static/' ),
			STATIC_ROOT: JSON.stringify( publicPath + 'static/' ),
			PUBLIC_PATH: JSON.stringify( publicPath ),
		},
		index: path.resolve( __dirname, '../dist/index.html' ),
		versionPath: versionPath,
		publicPath: publicPath,
		enableESLintLoader: true,
		enableTSLintLoader: true,
	},
	dev: {
		env: {
			NODE_ENV: JSON.stringify( 'development' ),
			VERSIONED_STATIC_ROOT: JSON.stringify( '/static/' ),
			STATIC_ROOT: JSON.stringify( '/static/' ),
			PUBLIC_PATH: JSON.stringify( '/' ),
		},
		port: 8080,
		proxyTable: {},
		enableESLintLoader: false,
		enableTSLintLoader: false,
	},
	useHttps: false,
	prePush: [
		{
			name: 'esLintCheck',
			options: {}
		},
		{
			name: 'tsLintCheck',
			options: {
				// Make sure that these folders are also excluded in the tslintloader config in webpackHelpers.js
				exclude: [
					'./node_modules/**/*',
					'./src/vendor/**/*'
				],
			},
		},
	],
};

@@ -234,17 +234,16 @@
 ringify(
- 
 'product
@@ -246,17 +246,16 @@
 duction'
- 
 ),%0A%09%09%09VE
@@ -282,33 +282,32 @@
  JSON.stringify(
- 
 publicPath + ver
@@ -318,33 +318,32 @@
 Path + 'static/'
- 
 ),%0A%09%09%09STATIC_ROO
@@ -352,33 +352,32 @@
  JSON.stringify(
- 
 publicPath + 'st
@@ -374,33 +374,32 @@
 Path + 'static/'
- 
 ),%0A%09%09%09PUBLIC_PAT
@@ -416,17 +416,16 @@
 ringify(
- 
 publicPa
@@ -426,17 +426,16 @@
 blicPath
- 
 ),%0A%09%09%7D,%0A
@@ -456,17 +456,16 @@
 resolve(
- 
 __dirnam
@@ -487,17 +487,16 @@
 ex.html'
- 
 ),%0A%09%09ver
@@ -649,17 +649,16 @@
 ringify(
- 
 'develop
@@ -662,17 +662,16 @@
 lopment'
- 
 ),%0A%09%09%09VE
@@ -698,33 +698,32 @@
  JSON.stringify(
- 
 '/static/' ),%0A%09%09
@@ -712,25 +712,24 @@
 y('/static/'
- 
 ),%0A%09%09%09STATIC
@@ -750,17 +750,16 @@
 ringify(
- 
 '/static
@@ -760,17 +760,16 @@
 static/'
- 
 ),%0A%09%09%09PU
@@ -798,13 +798,11 @@
 ify(
- 
 '/'
- 
 ),%0A%09

fix weird formatting in config