mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
chore: remove uncessesarry source-map install
This commit is contained in:
parent
5ce204c19f
commit
e6987d62f0
4
bin/nuxt
4
bin/nuxt
@ -1,9 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
// Node Source Map Support
|
|
||||||
// https://github.com/evanw/node-source-map-support
|
|
||||||
require('source-map-support').install()
|
|
||||||
|
|
||||||
const join = require('path').join
|
const join = require('path').join
|
||||||
|
|
||||||
const defaultCommand = 'dev'
|
const defaultCommand = 'dev'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const parseArgs = require('minimist')
|
const parseArgs = require('minimist')
|
||||||
const { Nuxt, Server } = require('../')
|
const { Nuxt } = require('../')
|
||||||
const { join, resolve } = require('path')
|
const { join, resolve } = require('path')
|
||||||
|
|
||||||
const argv = parseArgs(process.argv.slice(2), {
|
const argv = parseArgs(process.argv.slice(2), {
|
||||||
@ -60,7 +60,7 @@ if (typeof options.rootDir !== 'string') {
|
|||||||
options.dev = false
|
options.dev = false
|
||||||
|
|
||||||
// Check if project is built for production
|
// Check if project is built for production
|
||||||
const distDir = join(options.rootDir, options.buildDir || '.nuxt', 'dist' )
|
const distDir = join(options.rootDir, options.buildDir || '.nuxt', 'dist')
|
||||||
if (!fs.existsSync(join(distDir, 'server-bundle.json'))) {
|
if (!fs.existsSync(join(distDir, 'server-bundle.json'))) {
|
||||||
console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console
|
console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user