const webpack = require('webpack')
const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const version = JSON.parse(packageJson).version || 0

module.exports = {
  configureWebpack: {
    plugins: [
      new webpack.DefinePlugin({
        'process.env': {
					PACKAGE_VERSION: '"' + version + '"'
				}
      })
    ]
  },
	publicPath: './',
	chainWebpack: config => config.plugins.delete('named-chunks'),
	parallel: false
}

const webpack = require('webpack')
const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const version = JSON.parse(packageJson).version || 0

module.exports = {
  configureWebpack: {
    plugins: [
      new webpack.DefinePlugin({
        'process.env': {
					PACKAGE_VERSION: '"' + version + '"'
				}
      })
    ]
  },
	publicPath: '/',
	chainWebpack: config => config.plugins.delete('named-chunks'),
	parallel: false
}

set public path to fix router issues