Skip to content
Snippets Groups Projects
vue.config.js 450 B
Newer Older
const webpack = require('webpack')
const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const version = JSON.parse(packageJson).version || 0
module.exports = {
Timothee P's avatar
Timothee P committed
  publicPath: '/geocontrib/',
  configureWebpack: {
    plugins: [
      new webpack.DefinePlugin({
        'process.env': {
          PACKAGE_VERSION: '"' + version + '"'
        }
      })
    ]
  },
  // the rest of your original module.exports code goes here