Skip to content

VueJS is running in development mode on docs.gitlab.com

Description

VueJS is running in development mode on docs.gitlab.com.

Steps to reproduce

Got to the following URL: https://docs.gitlab.com/ee/README.html Look for the output in the console.

Actual result

Screen_Shot_2020-09-07_at_10.22.04

Expected result

Vue should not be running in development mode in production.

Further details

https://vuejs.org/v2/guide/deployment.html#Turn-on-Production-Mode

Use @rollup/plugin-replace:
const replace = require('@rollup/plugin-replace')
rollup({
  // ...
  plugins: [
    replace({
      'process.env.NODE_ENV': JSON.stringify( 'production' )
    })
  ]
}).then(...)