mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
feat(frontend): add build script
The build script prepares the package for a production build, builds the app, places every all needed files in a dist directory and cleans it. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
7b3c217470
commit
4cb332622a
7 changed files with 50 additions and 26 deletions
|
@ -37,12 +37,6 @@ const isMockMode = !!process.env.NEXT_PUBLIC_USE_MOCK_API && isPositiveAnswer(pr
|
|||
*/
|
||||
const isDevMode = process.env.NODE_ENV === 'development'
|
||||
|
||||
/**
|
||||
* Defines if the current runtime was built in production mode.
|
||||
* @type boolean
|
||||
*/
|
||||
const isProductionMode = process.env.NODE_ENV === 'production'
|
||||
|
||||
/**
|
||||
* Defines if the current runtime contains the bundle analyzer and profiling metrics.
|
||||
* @type boolean
|
||||
|
@ -53,6 +47,5 @@ module.exports = {
|
|||
isTestMode,
|
||||
isMockMode,
|
||||
isDevMode,
|
||||
isProductionMode,
|
||||
isProfilingMode
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue