1 | {"version":3,"file":"nuxt.js","sources":["../lib/common/utils.js","../lib/core/module.js","../lib/common/modes.js","../lib/common/nuxt.config.js","../lib/common/options.js","../lib/core/meta.js","../lib/core/middleware/error.js","../lib/core/middleware/nuxt.js","../lib/core/renderer.js","../lib/core/nuxt.js","../lib/core/index.js","../lib/builder/webpack/utils/perf-loader.js","../lib/builder/webpack/plugins/vue/util.js","../lib/builder/webpack/plugins/vue/client.js","../lib/builder/webpack/utils/postcss.js","../lib/builder/webpack/utils/style-loader.js","../lib/builder/webpack/plugins/warnfix.js","../lib/builder/webpack/plugins/stats.js","../lib/builder/webpack/base.js","../lib/builder/webpack/client.js","../lib/builder/webpack/plugins/vue/server.js","../lib/builder/webpack/server.js","../lib/builder/builder.js","../lib/builder/generator.js","../lib/builder/index.js","../lib/index.js"],"sourcesContent":["import path from 'path'\nimport _ from 'lodash'\nimport consola from 'consola'\n\nexport const encodeHtml = function encodeHtml(str) {\n return str.replace(/</g, '<').replace(/>/g, '>')\n}\n\nexport const getContext = function getContext(req, res) {\n return { req, res }\n}\n\nexport const waitFor = function waitFor(ms) {\n return new Promise(resolve => setTimeout(resolve, ms || 0))\n}\n\nasync function promiseFinally(fn, finalFn) {\n let result\n try {\n if (typeof fn === 'function') {\n result = await fn()\n } else {\n result = await fn\n }\n } finally {\n finalFn()\n }\n return result\n}\n\nexport const timeout = function timeout(fn, ms, msg) {\n let timerId\n const warpPromise = promiseFinally(fn, () => clearTimeout(timerId))\n const timerPromise = new Promise((resolve, reject) => {\n timerId = setTimeout(() => reject(new Error(msg)), ms)\n })\n return Promise.race([warpPromise, timerPromise])\n}\n\nexport const urlJoin = function urlJoin() {\n return [].slice\n .call(arguments)\n .join('/')\n .replace(/\\/+/g, '/')\n .replace(':/', '://')\n}\n\nexport const isUrl = function isUrl(url) {\n return url.indexOf('http') === 0 || url.indexOf('//') === 0\n}\n\nexport const promisifyRoute = function promisifyRoute(fn, ...args) {\n // If routes is an array\n if (Array.isArray(fn)) {\n return Promise.resolve(fn)\n }\n // If routes is a function expecting a callback\n if (fn.length === arguments.length) {\n return new Promise((resolve, reject) => {\n fn((err, routeParams) => {\n if (err) {\n reject(err)\n }\n resolve(routeParams)\n }, ...args)\n })\n }\n let promise = fn(...args)\n if (\n !promise ||\n (!(promise instanceof Promise) && typeof promise.then !== 'function')\n ) {\n promise = Promise.resolve(promise)\n }\n return promise\n}\n\nexport const sequence = function sequence(tasks, fn) {\n return tasks.reduce(\n (promise, task) => promise.then(() => fn(task)),\n Promise.resolve()\n )\n}\n\nexport const parallel = function parallel(tasks, fn) {\n return Promise.all(tasks.map(fn))\n}\n\nexport const chainFn = function chainFn(base, fn) {\n /* istanbul ignore if */\n if (typeof fn !== 'function') {\n return base\n }\n return function () {\n if (typeof base !== 'function') {\n return fn.apply(this, arguments)\n }\n let baseResult = base.apply(this, arguments)\n // Allow function to mutate the first argument instead of returning the result\n if (baseResult === undefined) {\n baseResult = arguments[0]\n }\n const fnResult = fn.call(\n this,\n baseResult,\n ...Array.prototype.slice.call(arguments, 1)\n )\n // Return mutated argument if no result was returned\n if (fnResult === undefined) {\n return baseResult\n }\n return fnResult\n }\n}\n\nexport const isPureObject = function isPureObject(o) {\n return !Array.isArray(o) && typeof o === 'object'\n}\n\nexport const isWindows = /^win/.test(process.platform)\n\nexport const wp = function wp(p = '') {\n /* istanbul ignore if */\n if (isWindows) {\n return p.replace(/\\\\/g, '\\\\\\\\')\n }\n return p\n}\n\nexport const wChunk = function wChunk(p = '') {\n /* istanbul ignore if */\n if (isWindows) {\n return p.replace(/\\//g, '_')\n }\n return p\n}\n\nconst reqSep = /\\//g\nconst sysSep = _.escapeRegExp(path.sep)\nconst normalize = string => string.replace(reqSep, sysSep)\n\nexport const r = function r() {\n const args = Array.prototype.slice.apply(arguments)\n const lastArg = _.last(args)\n\n if (lastArg.indexOf('@') === 0 || lastArg.indexOf('~') === 0) {\n return wp(lastArg)\n }\n\n return wp(path.resolve(...args.map(normalize)))\n}\n\nexport const relativeTo = function relativeTo() {\n const args = Array.prototype.slice.apply(arguments)\n const dir = args.shift()\n\n // Keep webpack inline loader intact\n if (args[0].indexOf('!') !== -1) {\n const loaders = args.shift().split('!')\n\n return loaders.concat(relativeTo(dir, loaders.pop(), ...args)).join('!')\n }\n\n // Resolve path\n const _path = r(...args)\n\n // Check if path is an alias\n if (_path.indexOf('@') === 0 || _path.indexOf('~') === 0) {\n return _path\n }\n\n // Make correct relative path\n let rp = path.relative(dir, _path)\n if (rp[0] !== '.') {\n rp = './' + rp\n }\n\n return wp(rp)\n}\n\nexport const flatRoutes = function flatRoutes(router, _path = '', routes = []) {\n router.forEach((r) => {\n if (!r.path.includes(':') && !r.path.includes('*')) {\n /* istanbul ignore if */\n if (r.children) {\n if (_path === '' && r.path === '/') {\n routes.push('/')\n }\n flatRoutes(r.children, _path + r.path + '/', routes)\n } else {\n _path = _path.replace(/^\\/+$/, '/')\n routes.push(\n (r.path === '' && _path[_path.length - 1] === '/'\n ? _path.slice(0, -1)\n : _path) + r.path\n )\n }\n }\n })\n return routes\n}\n\nfunction cleanChildrenRoutes(routes, isChild = false) {\n let start = -1\n const routesIndex = []\n routes.forEach((route) => {\n if (/-index$/.test(route.name) || route.name === 'index') {\n // Save indexOf 'index' key in name\n const res = route.name.split('-')\n const s = res.indexOf('index')\n start = start === -1 || s < start ? s : start\n routesIndex.push(res)\n }\n })\n routes.forEach((route) => {\n route.path = isChild ? route.path.replace('/', '') : route.path\n if (route.path.indexOf('?') > -1) {\n const names = route.name.split('-')\n const paths = route.path.split('/')\n if (!isChild) {\n paths.shift()\n } // clean first / for parents\n routesIndex.forEach((r) => {\n const i = r.indexOf('index') - start // children names\n if (i < paths.length) {\n for (let a = 0; a <= i; a++) {\n if (a === i) {\n paths[a] = paths[a].replace('?', '')\n }\n if (a < i && names[a] !== r[a]) {\n break\n }\n }\n }\n })\n route.path = (isChild ? '' : '/') + paths.join('/')\n }\n route.name = route.name.replace(/-index$/, '')\n if (route.children) {\n if (route.children.find(child => child.path === '')) {\n delete route.name\n }\n route.children = cleanChildrenRoutes(route.children, true)\n }\n })\n return routes\n}\n\nexport const createRoutes = function createRoutes(files, srcDir, pagesDir) {\n const routes = []\n files.forEach((file) => {\n const keys = file\n .replace(RegExp(`^${pagesDir}`), '')\n .replace(/\\.(vue|js)$/, '')\n .replace(/\\/{2,}/g, '/')\n .split('/')\n .slice(1)\n const route = { name: '', path: '', component: r(srcDir, file) }\n let parent = routes\n keys.forEach((key, i) => {\n // remove underscore only, if its the prefix\n const sanitizedKey = key.indexOf('_') === 0\n ? key.replace('_', '')\n : key\n route.name = route.name\n ? route.name + '-' + sanitizedKey\n : sanitizedKey\n route.name += key === '_' ? 'all' : ''\n route.chunkName = file.replace(/\\.(vue|js)$/, '')\n const child = _.find(parent, { name: route.name })\n if (child) {\n child.children = child.children || []\n parent = child.children\n route.path = ''\n } else if (key === 'index' && i + 1 === keys.length) {\n route.path += i > 0 ? '' : '/'\n } else {\n route.path += '/' +\n (key === '_'\n ? '*'\n : key.indexOf('_') === 0\n ? key.replace('_', ':')\n : key)\n if (key !== '_' && key.indexOf('_') === 0) {\n route.path += '?'\n }\n }\n })\n // Order Routes path\n parent.push(route)\n parent.sort((a, b) => {\n if (!a.path.length) {\n return -1\n }\n if (!b.path.length) {\n return 1\n }\n // Order: /static, /index, /:dynamic\n // Match exact route before index: /login before /index/_slug\n if (a.path === '/') {\n return /^\\/(:|\\*)/.test(b.path) ? -1 : 1\n }\n if (b.path === '/') {\n return /^\\/(:|\\*)/.test(a.path) ? 1 : -1\n }\n let i = 0\n let res = 0\n let y = 0\n let z = 0\n const _a = a.path.split('/')\n const _b = b.path.split('/')\n for (i = 0; i < _a.length; i++) {\n if (res !== 0) {\n break\n }\n y = _a[i] === '*' ? 2 : _a[i].indexOf(':') > -1 ? 1 : 0\n z = _b[i] === '*' ? 2 : _b[i].indexOf(':') > -1 ? 1 : 0\n res = y - z\n // If a.length >= b.length\n if (i === _b.length - 1 && res === 0) {\n // change order if * found\n res = _a[i] === '*' ? -1 : 1\n }\n }\n return res === 0 ? (_a[i - 1] === '*' && _b[i] ? 1 : -1) : res\n })\n })\n return cleanChildrenRoutes(routes)\n}\n\n// Guard dir1 from dir2 which can be indiscriminately removed\nexport const guardDir = function guardDir(options, key1, key2) {\n const dir1 = _.get(options, key1, false)\n const dir2 = _.get(options, key2, false)\n\n if (\n dir1 &&\n dir2 &&\n (\n dir1 === dir2 ||\n (\n dir1.startsWith(dir2) &&\n !path.basename(dir1).startsWith(path.basename(dir2))\n )\n )\n ) {\n const errorMessage = `options.${key2} cannot be a parent of or same as ${key1}`\n consola.fatal(errorMessage)\n throw new Error(errorMessage)\n }\n}\n","import path from 'path'\nimport fs from 'fs'\nimport hash from 'hash-sum'\nimport consola from 'consola'\nimport { chainFn, sequence } from '../common/utils'\n\nexport default class ModuleContainer {\n constructor(nuxt) {\n this.nuxt = nuxt\n this.options = nuxt.options\n this.requiredModules = {}\n }\n\n async ready() {\n // Call before hook\n await this.nuxt.callHook('modules:before', this, this.options.modules)\n\n // Load every module in sequence\n await sequence(this.options.modules, this.addModule.bind(this))\n\n // Call done hook\n await this.nuxt.callHook('modules:done', this)\n }\n\n addVendor() {\n consola.warn('addVendor has been deprecated due to webpack4 optimization')\n }\n\n addTemplate(template) {\n /* istanbul ignore if */\n if (!template) {\n throw new Error('Invalid template:' + JSON.stringify(template))\n }\n\n // Validate & parse source\n const src = template.src || template\n const srcPath = path.parse(src)\n /* istanbul ignore if */\n if (typeof src !== 'string' || !fs.existsSync(src)) {\n throw new Error('Template src not found:' + src)\n }\n\n // Generate unique and human readable dst filename\n const dst =\n template.fileName ||\n path.basename(srcPath.dir) + `.${srcPath.name}.${hash(src)}` + srcPath.ext\n\n // Add to templates list\n const templateObj = {\n src,\n dst,\n options: template.options\n }\n\n this.options.build.templates.push(templateObj)\n return templateObj\n }\n\n addPlugin(template) {\n const { dst } = this.addTemplate(template)\n\n // Add to nuxt plugins\n this.options.plugins.unshift({\n src: path.join(this.options.buildDir, dst),\n ssr: template.ssr\n })\n }\n\n addLayout(template, name) {\n const { dst, src } = this.addTemplate(template)\n\n // Add to nuxt layouts\n this.options.layouts[name || path.parse(src).name] = `./${dst}`\n\n // If error layout, set ErrorPage\n if (name === 'error') {\n this.addErrorLayout(dst)\n }\n }\n\n addErrorLayout(dst) {\n const relativeBuildDir = path.relative(this.options.rootDir, this.options.buildDir)\n this.options.ErrorPage = `~/${relativeBuildDir}/${dst}`\n }\n\n addServerMiddleware(middleware) {\n this.options.serverMiddleware.push(middleware)\n }\n\n extendBuild(fn) {\n this.options.build.extend = chainFn(this.options.build.extend, fn)\n }\n\n extendRoutes(fn) {\n this.options.router.extendRoutes = chainFn(\n this.options.router.extendRoutes,\n fn\n )\n }\n\n requireModule(moduleOpts) {\n return this.addModule(moduleOpts, true /* require once */)\n }\n\n addModule(moduleOpts, requireOnce) {\n let src\n let options\n let handler\n\n // Type 1: String\n if (typeof moduleOpts === 'string') {\n src = moduleOpts\n } else if (Array.isArray(moduleOpts)) {\n // Type 2: Babel style array\n src = moduleOpts[0]\n options = moduleOpts[1]\n } else if (typeof moduleOpts === 'object') {\n // Type 3: Pure object\n src = moduleOpts.src\n options = moduleOpts.options\n handler = moduleOpts.handler\n }\n\n // Resolve handler\n if (!handler) {\n handler = this.nuxt.requireModule(src)\n }\n\n // Validate handler\n /* istanbul ignore if */\n if (typeof handler !== 'function') {\n throw new Error('Module should export a function: ' + src)\n }\n\n // Resolve module meta\n const key = (handler.meta && handler.meta.name) || handler.name || src\n\n // Update requiredModules\n if (typeof key === 'string') {\n if (requireOnce && this.requiredModules[key]) {\n return\n }\n this.requiredModules[key] = { src, options, handler }\n }\n\n // Default module options to empty object\n if (options === undefined) {\n options = {}\n }\n\n return new Promise((resolve) => {\n // Call module with `this` context and pass options\n const result = handler.call(this, options)\n\n // If module send back a promise\n if (result && result.then) {\n return resolve(result)\n }\n\n // synchronous\n return resolve()\n })\n }\n}\n","export default {\n universal: {\n build: {\n ssr: true\n },\n render: {\n ssr: true\n }\n },\n spa: {\n build: {\n ssr: false\n },\n render: {\n ssr: false\n }\n }\n}\n","import path from 'path'\nimport fs from 'fs'\nimport env from 'std-env'\n\nconst nuxtDir = fs.existsSync(path.resolve(__dirname, '..', 'package.json'))\n ? path.resolve(__dirname, '..') // dist\n : path.resolve(__dirname, '..', '..') // src\n\nexport default {\n // Information about running environment\n dev: Boolean(env.dev),\n debug: undefined, // = dev\n\n // Mode\n mode: 'universal',\n\n // Server options\n server: {\n https: false,\n port: process.env.NUXT_PORT ||\n process.env.PORT ||\n process.env.npm_package_config_nuxt_port,\n host: process.env.NUXT_HOST ||\n process.env.HOST ||\n process.env.npm_package_config_nuxt_host\n },\n\n // Dirs\n srcDir: undefined,\n buildDir: '.nuxt',\n nuxtDir,\n nuxtAppDir: path.resolve(nuxtDir, 'lib', 'app'),\n modulesDir: ['node_modules'], // ~> relative to options.rootDir\n\n // Ignore\n ignorePrefix: '-',\n ignore: [\n '**/*.test.*',\n '**/*.spec.*'\n ],\n\n extensions: [],\n\n build: {\n quiet: Boolean(env.ci || env.test),\n analyze: false,\n profile: process.argv.includes('--profile'),\n extractCSS: false,\n cssSourceMap: undefined,\n ssr: undefined,\n parallel: false,\n cache: false,\n publicPath: '/_nuxt/',\n filenames: {\n // { isDev, isClient, isServer }\n app: ({ isDev }) => isDev ? '[name].js' : '[chunkhash].js',\n chunk: ({ isDev }) => isDev ? '[name].js' : '[chunkhash].js',\n css: ({ isDev }) => isDev ? '[name].js' : '[contenthash].css',\n img: ({ isDev }) => isDev ? '[path][name].[ext]' : 'img/[hash:7].[ext]',\n font: ({ isDev }) => isDev ? '[path][name].[ext]' : 'fonts/[hash:7].[ext]',\n video: ({ isDev }) => isDev ? '[path][name].[ext]' : 'videos/[hash:7].[ext]'\n },\n loaders: {\n file: {},\n fontUrl: { limit: 1000 },\n imgUrl: { limit: 1000 },\n pugPlain: {},\n vue: {\n transformAssetUrls: {\n video: 'src',\n source: 'src',\n object: 'src',\n embed: 'src'\n }\n },\n css: {},\n cssModules: {\n localIdentName: '[local]_[hash:base64:5]'\n },\n less: {},\n sass: {\n indentedSyntax: true\n },\n scss: {},\n stylus: {},\n vueStyle: {}\n },\n styleResources: {},\n plugins: [],\n optimization: {\n runtimeChunk: 'single',\n splitChunks: {\n chunks: 'all',\n automaticNameDelimiter: '.',\n name: undefined,\n cacheGroups: {}\n }\n },\n splitChunks: {\n layouts: false,\n pages: true,\n commons: true\n },\n babel: {\n babelrc: false,\n cacheDirectory: undefined\n },\n transpile: [], // Name of NPM packages to be transpiled\n postcss: {\n preset: {\n // https://cssdb.org/#staging-process\n stage: 2\n }\n },\n templates: [],\n watch: [],\n devMiddleware: {},\n hotMiddleware: {},\n stats: {\n chunks: false,\n children: false,\n modules: false,\n colors: true,\n warnings: true,\n errors: true,\n excludeAssets: [\n /.map$/,\n /index\\..+\\.html$/,\n /vue-ssr-client-manifest.json/\n ]\n }\n },\n generate: {\n dir: 'dist',\n routes: [],\n concurrency: 500,\n interval: 0,\n subFolders: true,\n fallback: '200.html',\n minify: {\n collapseBooleanAttributes: true,\n collapseWhitespace: false,\n decodeEntities: true,\n minifyCSS: true,\n minifyJS: true,\n processConditionalComments: true,\n removeAttributeQuotes: false,\n removeComments: false,\n removeEmptyAttributes: true,\n removeOptionalTags: false,\n removeRedundantAttributes: true,\n removeScriptTypeAttributes: false,\n removeStyleLinkTypeAttributes: false,\n removeTagWhitespace: false,\n sortAttributes: true,\n sortClassName: false,\n trimCustomFragments: true,\n useShortDoctype: true\n }\n },\n env: {},\n head: {\n meta: [],\n link: [],\n style: [],\n script: []\n },\n plugins: [],\n css: [],\n modules: [],\n layouts: {},\n serverMiddleware: [],\n ErrorPage: null,\n loading: {\n color: 'black',\n failedColor: 'red',\n height: '2px',\n duration: 5000,\n rtl: false\n },\n loadingIndicator: 'default',\n transition: {\n name: 'page',\n mode: 'out-in',\n appear: false,\n appearClass: 'appear',\n appearActiveClass: 'appear-active',\n appearToClass: 'appear-to'\n },\n layoutTransition: {\n name: 'layout',\n mode: 'out-in'\n },\n dir: {\n assets: 'assets',\n layouts: 'layouts',\n middleware: 'middleware',\n pages: 'pages',\n static: 'static',\n store: 'store'\n },\n vue: {\n config: {\n silent: undefined, // = !dev\n performance: undefined // = dev\n }\n },\n router: {\n mode: 'history',\n base: '/',\n routes: [],\n middleware: [],\n linkActiveClass: 'nuxt-link-active',\n linkExactActiveClass: 'nuxt-link-exact-active',\n extendRoutes: null,\n scrollBehavior: null,\n parseQuery: false,\n stringifyQuery: false,\n fallback: false\n },\n render: {\n bundleRenderer: {\n shouldPrefetch: () => false\n },\n resourceHints: true,\n ssr: undefined,\n http2: {\n push: false,\n shouldPush: null\n },\n static: {\n prefix: true\n },\n compressor: {\n threshold: 0\n },\n etag: {\n weak: false\n },\n csp: false,\n dist: {\n // Don't serve index.html template\n index: false,\n // 1 year in production\n maxAge: '1y'\n }\n },\n // User-defined changes\n watch: [],\n watchers: {\n webpack: {},\n chokidar: {\n ignoreInitial: true\n }\n },\n editor: undefined,\n hooks: null,\n messages: {\n loading: 'Loading...',\n error_404: 'This page could not be found',\n server_error: 'Server error',\n nuxtjs: 'Nuxt.js',\n back_to_home: 'Back to the home page',\n server_error_details:\n 'An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.',\n client_error: 'Error',\n client_error_details:\n 'An error occurred while rendering the page. Check developer tools console for details.'\n }\n}\n","import path from 'path'\nimport fs from 'fs'\n\nimport _ from 'lodash'\nimport consola from 'consola'\nimport { isPureObject, isUrl, guardDir } from '../common/utils'\n\nimport modes from './modes'\nimport defaults from './nuxt.config'\n\n// hasValue utility\nconst hasValue = v => typeof v === 'string' && v\n\nconst Options = {}\n\nexport default Options\n\nOptions.from = function (_options) {\n // Clone options to prevent unwanted side-effects\n const options = Object.assign({}, _options)\n\n // Normalize options\n if (options.loading === true) {\n delete options.loading\n }\n if (\n options.router &&\n options.router.middleware &&\n !Array.isArray(options.router.middleware)\n ) {\n options.router.middleware = [options.router.middleware]\n }\n if (options.router && typeof options.router.base === 'string') {\n options._routerBaseSpecified = true\n }\n if (typeof options.transition === 'string') {\n options.transition = { name: options.transition }\n }\n if (typeof options.layoutTransition === 'string') {\n options.layoutTransition = { name: options.layoutTransition }\n }\n if (typeof options.extensions === 'string') {\n options.extensions = [options.extensions]\n }\n\n // Resolve rootDir\n options.rootDir = hasValue(options.rootDir) ? path.resolve(options.rootDir) : process.cwd()\n\n // Apply defaults by ${buildDir}/dist/build.config.js\n // TODO: Unsafe operation.\n // const buildDir = options.buildDir || defaults.buildDir\n // const buildConfig = resolve(options.rootDir, buildDir, 'build.config.js')\n // if (existsSync(buildConfig)) {\n // _.defaultsDeep(options, require(buildConfig))\n // }\n\n // Apply defaults\n _.defaultsDeep(options, defaults)\n\n // Check srcDir and generate.dir excistence\n const hasSrcDir = hasValue(options.srcDir)\n const hasGenerateDir = hasValue(options.generate.dir)\n\n // Resolve srcDir\n options.srcDir = hasSrcDir\n ? path.resolve(options.rootDir, options.srcDir)\n : options.rootDir\n\n // Resolve buildDir\n options.buildDir = path.resolve(options.rootDir, options.buildDir)\n\n // Protect rootDir against buildDir\n guardDir(options, 'rootDir', 'buildDir')\n\n if (hasGenerateDir) {\n // Resolve generate.dir\n options.generate.dir = path.resolve(options.rootDir, options.generate.dir)\n\n // Protect rootDir against buildDir\n guardDir(options, 'rootDir', 'generate.dir')\n }\n\n if (hasSrcDir) {\n // Protect srcDir against buildDir\n guardDir(options, 'srcDir', 'buildDir')\n\n if (hasGenerateDir) {\n // Protect srcDir against generate.dir\n guardDir(options, 'srcDir', 'generate.dir')\n }\n }\n\n // Populate modulesDir\n options.modulesDir = []\n .concat(options.modulesDir)\n .concat(path.join(options.nuxtDir, 'node_modules'))\n .filter(hasValue)\n .map(dir => path.resolve(options.rootDir, dir))\n\n // Sanitize extensions\n if (options.extensions.indexOf('js') === -1) {\n options.extensions.unshift('js')\n }\n\n if (options.extensions.indexOf('mjs') === -1) {\n options.extensions.unshift('mjs')\n }\n\n // If app.html is defined, set the template path to the user template\n if (options.appTemplatePath === undefined) {\n options.appTemplatePath = path.resolve(options.buildDir, 'views/app.template.html')\n if (fs.existsSync(path.join(options.srcDir, 'app.html'))) {\n options.appTemplatePath = path.join(options.srcDir, 'app.html')\n }\n } else {\n options.appTemplatePath = path.resolve(options.srcDir, options.appTemplatePath)\n }\n\n // Ignore publicPath on dev\n /* istanbul ignore if */\n if (options.dev && isUrl(options.build.publicPath)) {\n options.build.publicPath = defaults.build.publicPath\n }\n\n // If store defined, update store options to true unless explicitly disabled\n if (\n options.store !== false &&\n fs.existsSync(path.join(options.srcDir, options.dir.store)) &&\n fs.readdirSync(path.join(options.srcDir, options.dir.store))\n .find(filename => filename !== 'README.md' && filename[0] !== '.')\n ) {\n options.store = true\n }\n\n // SPA loadingIndicator\n if (options.loadingIndicator) {\n // Normalize loadingIndicator\n if (!isPureObject(options.loadingIndicator)) {\n options.loadingIndicator = { name: options.loadingIndicator }\n }\n\n // Apply defaults\n options.loadingIndicator = Object.assign(\n {\n name: 'default',\n color: (options.loading && options.loading.color) || '#D3D3D3',\n color2: '#F5F5F5',\n background: (options.manifest && options.manifest.theme_color) || 'white',\n dev: options.dev,\n loading: options.messages.loading\n },\n options.loadingIndicator\n )\n }\n\n // Debug errors\n if (options.debug === undefined) {\n options.debug = options.dev\n }\n\n // Apply default hash to CSP option\n const csp = options.render.csp\n const cspDefaults = {\n hashAlgorithm: 'sha256',\n allowedSources: undefined,\n policies: undefined,\n reportOnly: options.debug\n }\n if (csp) {\n options.render.csp = _.defaults(_.isObject(csp) ? csp : {}, cspDefaults)\n }\n\n // cssSourceMap\n if (options.build.cssSourceMap === undefined) {\n options.build.cssSourceMap = options.dev\n }\n\n // babel cacheDirectory\n if (options.build.babel.cacheDirectory === undefined) {\n options.build.babel.cacheDirectory = options.dev\n }\n\n // vue config\n const vueConfig = options.vue.config\n\n if (vueConfig.silent === undefined) {\n vueConfig.silent = !options.dev\n }\n if (vueConfig.performance === undefined) {\n vueConfig.performance = options.dev\n }\n\n // merge custom env with variables\n const eligibleEnvVariables = _.pick(process.env, Object.keys(process.env).filter(k => k.startsWith('NUXT_ENV_')))\n Object.assign(options.env, eligibleEnvVariables)\n\n // Normalize ignore\n options.ignore = options.ignore ? [].concat(options.ignore) : []\n\n // Append ignorePrefix glob to ignore\n if (typeof options.ignorePrefix === 'string') {\n options.ignore.push(`**/${options.ignorePrefix}*.*`)\n }\n\n // Compression middleware legacy\n if (options.render.gzip) {\n consola.warn('render.gzip is deprecated and will be removed in a future version! Please switch to render.compressor')\n options.render.compressor = options.render.gzip\n delete options.render.gzip\n }\n\n // Apply mode preset\n const modePreset = modes[options.mode || 'universal'] || modes.universal\n _.defaultsDeep(options, modePreset)\n\n // If no server-side rendering, add appear true transition\n /* istanbul ignore if */\n if (options.render.ssr === false && options.transition) {\n options.transition.appear = true\n }\n\n // We assume the SPA fallback path is 404.html (for GitHub Pages, Surge, etc.)\n if (options.generate.fallback === true) {\n options.generate.fallback = '404.html'\n }\n\n if (options.build.stats === 'none' || options.build.quiet === true) {\n options.build.stats = false\n }\n\n // Vendor backward compatibility with nuxt 1.x\n if (typeof options.build.vendor !== 'undefined') {\n delete options.build.vendor\n consola.warn('vendor has been deprecated due to webpack4 optimization')\n }\n\n // TODO: remove when mini-css-extract-plugin supports HMR\n if (options.dev) {\n options.build.extractCSS = false\n }\n\n const loaders = options.build.loaders\n const vueLoader = loaders.vue\n if (vueLoader.productionMode === undefined) {\n vueLoader.productionMode = !options.dev\n }\n const styleLoaders = [\n 'css', 'cssModules', 'less',\n 'sass', 'scss', 'stylus', 'vueStyle'\n ]\n for (const name of styleLoaders) {\n const loader = loaders[name]\n if (loader && loader.sourceMap === undefined) {\n loader.sourceMap = Boolean(options.build.cssSourceMap)\n }\n }\n\n // include SFCs in node_modules\n options.build.transpile = [].concat(options.build.transpile || [])\n .map(module => module instanceof RegExp ? module : new RegExp(module))\n\n if (options.build.quiet === true) {\n consola.level = 0\n }\n\n return options\n}\n","import Vue from 'vue'\nimport VueMeta from 'vue-meta'\nimport { createRenderer } from 'vue-server-renderer'\nimport LRU from 'lru-cache'\n\nexport default class MetaRenderer {\n constructor(nuxt, renderer) {\n this.nuxt = nuxt\n this.renderer = renderer\n this.options = nuxt.options\n this.vueRenderer = createRenderer()\n this.cache = LRU({})\n\n // Add VueMeta to Vue (this is only for SPA mode)\n // See lib/app/index.js\n Vue.use(VueMeta, {\n keyName: 'head',\n attribute: 'data-n-head',\n ssrAttribute: 'data-n-head-ssr',\n tagIDKeyName: 'hid'\n })\n }\n\n async getMeta(url) {\n const vm = new Vue({\n render: h => h(), // Render empty html tag\n head: this.options.head || {}\n })\n await this.vueRenderer.renderToString(vm)\n return vm.$meta().inject()\n }\n\n async render({ url = '/' }) {\n let meta = this.cache.get(url)\n\n if (meta) {\n return meta\n }\n\n meta = {\n HTML_ATTRS: '',\n BODY_ATTRS: '',\n HEAD: '',\n BODY_SCRIPTS: ''\n }\n\n // Get vue-meta context\n const m = await this.getMeta(url)\n\n // HTML_ATTRS\n meta.HTML_ATTRS = m.htmlAttrs.text()\n\n // BODY_ATTRS\n meta.BODY_ATTRS = m.bodyAttrs.text()\n\n // HEAD tags\n meta.HEAD =\n m.title.text() +\n m.meta.text() +\n m.link.text() +\n m.style.text() +\n m.script.text() +\n m.noscript.text()\n\n // BODY_SCRIPTS\n meta.BODY_SCRIPTS = m.script.text({ body: true }) + m.noscript.text({ body: true })\n\n // Resources Hints\n\n meta.resourceHints = ''\n\n const clientManifest = this.renderer.resources.clientManifest\n\n const shouldPreload = this.options.render.bundleRenderer.shouldPreload || (() => true)\n const shouldPrefetch = this.options.render.bundleRenderer.shouldPrefetch || (() => true)\n\n if (this.options.render.resourceHints && clientManifest) {\n const publicPath = clientManifest.publicPath || '/_nuxt/'\n\n // Preload initial resources\n if (Array.isArray(clientManifest.initial)) {\n meta.resourceHints += clientManifest.initial\n .filter(file => shouldPreload(file))\n .map(\n r => `<link rel=\"preload\" href=\"${publicPath}${r}\" as=\"script\" />`\n )\n .join('')\n }\n\n // Prefetch async resources\n if (Array.isArray(clientManifest.async)) {\n meta.resourceHints += clientManifest.async\n .filter(file => shouldPrefetch(file))\n .map(r => `<link rel=\"prefetch\" href=\"${publicPath}${r}\" />`)\n .join('')\n }\n\n // Add them to HEAD\n if (meta.resourceHints) {\n meta.HEAD += meta.resourceHints\n }\n }\n\n // Emulate getPreloadFiles from vue-server-renderer (works for JS chunks only)\n meta.getPreloadFiles = () =>\n clientManifest.initial\n .filter(file => shouldPreload(file))\n .map(r => ({\n file: r,\n fileWithoutQuery: r,\n asType: 'script',\n extension: 'js'\n }))\n\n // Set meta tags inside cache\n this.cache.set(url, meta)\n\n return meta\n }\n}\n","import path from 'path'\nimport consola from 'consola'\n\nimport Youch from '@nuxtjs/youch'\nimport fs from 'fs-extra'\n\nexport default function errorMiddleware(err, req, res, next) {\n // ensure statusCode, message and name fields\n err.statusCode = err.statusCode || 500\n err.message = err.message || 'Nuxt Server Error'\n err.name = !err.name || err.name === 'Error' ? 'NuxtServerError' : err.name\n\n // We hide actual errors from end users, so show them on server logs\n if (err.statusCode !== 404) {\n consola.error(err)\n }\n\n const sendResponse = (content, type = 'text/html') => {\n // Set Headers\n res.statusCode = err.statusCode\n res.statusMessage = err.name\n res.setHeader('Content-Type', type + '; charset=utf-8')\n res.setHeader('Content-Length', Buffer.byteLength(content))\n\n // Send Response\n res.end(content, 'utf-8')\n }\n\n // Check if request accepts JSON\n const hasReqHeader = (header, includes) =>\n req.headers[header] && req.headers[header].toLowerCase().includes(includes)\n const isJson =\n hasReqHeader('accept', 'application/json') ||\n hasReqHeader('user-agent', 'curl/')\n\n // Use basic errors when debug mode is disabled\n if (!this.options.debug) {\n // Json format is compatible with Youch json responses\n const json = {\n status: err.statusCode,\n message: err.message,\n name: err.name\n }\n if (isJson) {\n sendResponse(JSON.stringify(json, undefined, 2), 'text/json')\n return\n }\n const html = this.resources.errorTemplate(json)\n sendResponse(html)\n return\n }\n\n // Show stack trace\n const youch = new Youch(\n err,\n req,\n readSource.bind(this),\n this.options.router.base,\n true\n )\n if (isJson) {\n youch.toJSON().then((json) => {\n sendResponse(JSON.stringify(json, undefined, 2), 'text/json')\n })\n } else {\n youch.toHTML().then(html => sendResponse(html))\n }\n}\n\nasync function readSource(frame) {\n // Remove webpack:/// & query string from the end\n const sanitizeName = name =>\n name ? name.replace('webpack:///', '').split('?')[0] : null\n frame.fileName = sanitizeName(frame.fileName)\n\n // Return if fileName is unknown\n /* istanbul ignore if */\n if (!frame.fileName) {\n return\n }\n\n // Possible paths for file\n const searchPath = [\n this.options.srcDir,\n this.options.rootDir,\n path.join(this.options.buildDir, 'dist', 'server'),\n this.options.buildDir,\n process.cwd()\n ]\n\n // Scan filesystem for real source\n for (const pathDir of searchPath) {\n const fullPath = path.resolve(pathDir, frame.fileName)\n const source = await fs.readFile(fullPath, 'utf-8').catch(() => null)\n if (source) {\n frame.contents = source\n frame.fullPath = fullPath\n if (path.isAbsolute(frame.fileName)) {\n frame.fileName = path.relative(this.options.rootDir, fullPath)\n }\n return\n }\n }\n\n // Fallback: use server bundle\n // TODO: restore to if after https://github.com/istanbuljs/nyc/issues/595 fixed\n /* istanbul ignore next */\n if (!frame.contents) {\n frame.contents = this.resources.serverBundle.files[frame.fileName]\n }\n}\n","import generateETag from 'etag'\nimport fresh from 'fresh'\nimport consola from 'consola'\n\nimport { getContext } from '../../common/utils'\n\nexport default async function nuxtMiddleware(req, res, next) {\n // Get context\n const context = getContext(req, res)\n\n res.statusCode = 200\n try {\n const result = await this.renderRoute(req.url, context)\n await this.nuxt.callHook('render:route', req.url, result, context)\n const {\n html,\n cspScriptSrcHashSet,\n error,\n redirected,\n getPreloadFiles\n } = result\n\n if (redirected) {\n this.nuxt.callHook('render:routeDone', req.url, result, context)\n return html\n }\n if (error) {\n res.statusCode = context.nuxt.error.statusCode || 500\n }\n\n // Add ETag header\n if (!error && this.options.render.etag) {\n const etag = generateETag(html, this.options.render.etag)\n if (fresh(req.headers, { etag })) {\n res.statusCode = 304\n res.end()\n this.nuxt.callHook('render:routeDone', req.url, result, context)\n return\n }\n res.setHeader('ETag', etag)\n }\n\n // HTTP2 push headers for preload assets\n if (!error && this.options.render.http2.push) {\n // Parse resourceHints to extract HTTP.2 prefetch/push headers\n // https://w3c.github.io/preload/#server-push-http-2\n const pushAssets = []\n const preloadFiles = getPreloadFiles()\n const { shouldPush } = this.options.render.http2\n const { publicPath } = this.resources.clientManifest\n\n preloadFiles.forEach(({ file, asType, fileWithoutQuery }) => {\n // By default, we only preload scripts or css\n /* istanbul ignore if */\n if (!shouldPush && asType !== 'script' && asType !== 'style') {\n return\n }\n\n // User wants to explicitly control what to preload\n if (shouldPush && !shouldPush(fileWithoutQuery, asType)) {\n return\n }\n\n pushAssets.push(`<${publicPath}${file}>; rel=preload; as=${asType}`)\n })\n\n // Pass with single Link header\n // https://blog.cloudflare.com/http-2-server-push-with-multiple-assets-per-link-header\n // https://www.w3.org/Protocols/9707-link-header.html\n res.setHeader('Link', pushAssets.join(','))\n }\n\n if (this.options.render.csp) {\n const { allowedSources, policies } = this.options.render.csp\n const cspHeader = this.options.render.csp.reportOnly ? 'Content-Security-Policy-Report-Only' : 'Content-Security-Policy'\n\n res.setHeader(cspHeader, getCspString({ cspScriptSrcHashSet, allowedSources, policies, isDev: this.options.dev }))\n }\n\n // Send response\n res.setHeader('Content-Type', 'text/html; charset=utf-8')\n res.setHeader('Content-Length', Buffer.byteLength(html))\n res.end(html, 'utf8')\n this.nuxt.callHook('render:routeDone', req.url, result, context)\n return html\n } catch (err) {\n /* istanbul ignore if */\n if (context && context.redirected) {\n consola.error(err)\n return err\n }\n\n next(err)\n }\n}\n\nconst getCspString = ({ cspScriptSrcHashSet, allowedSources, policies, isDev }) => {\n const joinedHashSet = Array.from(cspScriptSrcHashSet).join(' ')\n const baseCspStr = `script-src 'self'${isDev ? ` 'unsafe-eval'` : ''} ${joinedHashSet}`\n\n if (Array.isArray(allowedSources)) {\n return `${baseCspStr} ${allowedSources.join(' ')}`\n }\n\n const policyObjectAvailable = typeof policies === 'object' && policies !== null && !Array.isArray(policies)\n\n if (policyObjectAvailable) {\n const transformedPolicyObject = transformPolicyObject(policies, cspScriptSrcHashSet)\n\n return Object.entries(transformedPolicyObject).map(([k, v]) => `${k} ${v.join(' ')}`).join('; ')\n }\n\n return baseCspStr\n}\n\nconst transformPolicyObject = (policies, cspScriptSrcHashSet) => {\n const userHasDefinedScriptSrc = policies['script-src'] && Array.isArray(policies['script-src'])\n\n // Self is always needed for inline-scripts, so add it, no matter if the user specified script-src himself.\n\n const hashAndPolicySet = cspScriptSrcHashSet\n hashAndPolicySet.add(`'self'`)\n\n if (!userHasDefinedScriptSrc) {\n policies['script-src'] = Array.from(hashAndPolicySet)\n return policies\n }\n\n new Set(policies['script-src']).forEach(src => hashAndPolicySet.add(src))\n\n policies['script-src'] = Array.from(hashAndPolicySet)\n\n return policies\n}\n","import path from 'path'\nimport crypto from 'crypto'\n\nimport serialize from 'serialize-javascript'\nimport serveStatic from 'serve-static'\nimport _ from 'lodash'\nimport fs from 'fs-extra'\nimport { createBundleRenderer } from 'vue-server-renderer'\nimport connect from 'connect'\nimport launchMiddleware from 'launch-editor-middleware'\nimport consola from 'consola'\n\nimport { isUrl, timeout, waitFor } from '../common/utils'\nimport defaults from '../common/nuxt.config'\n\nimport MetaRenderer from './meta'\nimport errorMiddleware from './middleware/error'\nimport nuxtMiddleware from './middleware/nuxt'\n\nlet jsdom = null\n\nexport default class Renderer {\n constructor(nuxt) {\n this.nuxt = nuxt\n this.options = nuxt.options\n\n // Will be set by createRenderer\n this.bundleRenderer = null\n this.metaRenderer = null\n\n // Will be available on dev\n this.webpackDevMiddleware = null\n this.webpackHotMiddleware = null\n\n // Create new connect instance\n this.app = connect()\n\n // Renderer runtime resources\n this.resources = {\n clientManifest: null,\n serverBundle: null,\n ssrTemplate: null,\n spaTemplate: null,\n errorTemplate: parseTemplate('Nuxt.js Internal Server Error')\n }\n }\n\n async ready() {\n await this.nuxt.callHook('render:before', this, this.options.render)\n // Setup nuxt middleware\n await this.setupMiddleware()\n\n // Production: Load SSR resources from fs\n if (!this.options.dev) {\n await this.loadResources()\n }\n\n // Call done hook\n await this.nuxt.callHook('render:done', this)\n }\n\n async loadResources(_fs = fs) {\n const distPath = path.resolve(this.options.buildDir, 'dist', 'server')\n const updated = []\n\n resourceMap.forEach(({ key, fileName, transform }) => {\n const rawKey = '$$' + key\n const _path = path.join(distPath, fileName)\n\n if (!_fs.existsSync(_path)) {\n return // Resource not exists\n }\n const rawData = _fs.readFileSync(_path, 'utf8')\n if (!rawData || rawData === this.resources[rawKey]) {\n return // No changes\n }\n this.resources[rawKey] = rawData\n const data = transform(rawData)\n /* istanbul ignore if */\n if (!data) {\n return // Invalid data ?\n }\n this.resources[key] = data\n updated.push(key)\n })\n\n // Reload error template\n const errorTemplatePath = path.resolve(this.options.buildDir, 'views/error.html')\n if (fs.existsSync(errorTemplatePath)) {\n this.resources.errorTemplate = parseTemplate(\n fs.readFileSync(errorTemplatePath, 'utf8')\n )\n }\n\n // Load loading template\n const loadingHTMLPath = path.resolve(this.options.buildDir, 'loading.html')\n if (fs.existsSync(loadingHTMLPath)) {\n this.resources.loadingHTML = fs.readFileSync(loadingHTMLPath, 'utf8')\n this.resources.loadingHTML = this.resources.loadingHTML\n .replace(/\\r|\\n|[\\t\\s]{3,}/g, '')\n } else {\n this.resources.loadingHTML = ''\n }\n\n // Call resourcesLoaded plugin\n await this.nuxt.callHook('render:resourcesLoaded', this.resources)\n\n if (updated.length > 0) {\n this.createRenderer()\n }\n }\n\n get noSSR() {\n return this.options.render.ssr === false\n }\n\n get isReady() {\n if (this.noSSR) {\n return Boolean(this.resources.spaTemplate)\n }\n\n return Boolean(this.bundleRenderer && this.resources.ssrTemplate)\n }\n\n get isResourcesAvailable() {\n // Required for both\n /* istanbul ignore if */\n if (!this.resources.clientManifest) {\n return false\n }\n\n // Required for SPA rendering\n if (this.noSSR) {\n return Boolean(this.resources.spaTemplate)\n }\n\n // Required for bundle renderer\n return Boolean(this.resources.ssrTemplate && this.resources.serverBundle)\n }\n\n createRenderer() {\n // Ensure resources are available\n if (!this.isResourcesAvailable) {\n return\n }\n\n // Create Meta Renderer\n this.metaRenderer = new MetaRenderer(this.nuxt, this)\n\n // Skip following steps if noSSR mode\n if (this.noSSR) {\n return\n }\n\n const hasModules = fs.existsSync(path.resolve(this.options.rootDir, 'node_modules'))\n // Create bundle renderer for SSR\n this.bundleRenderer = createBundleRenderer(\n this.resources.serverBundle,\n Object.assign(\n {\n clientManifest: this.resources.clientManifest,\n runInNewContext: false,\n // for globally installed nuxt command, search dependencies in global dir\n basedir: hasModules ? this.options.rootDir : __dirname\n },\n this.options.render.bundleRenderer\n )\n )\n }\n\n useMiddleware(m) {\n // Resolve\n const $m = m\n if (typeof m === 'string') {\n m = this.nuxt.requireModule(m)\n }\n if (typeof m.handler === 'string') {\n m.handler = this.nuxt.requireModule(m.handler)\n }\n\n const handler = m.handler || m\n const path = (\n (m.prefix !== false ? this.options.router.base : '') +\n (typeof m.path === 'string' ? m.path : '')\n ).replace(/\\/\\//g, '/')\n\n handler.$m = $m\n\n // Use middleware\n this.app.use(path, handler)\n }\n\n get publicPath() {\n return isUrl(this.options.build.publicPath)\n ? defaults.build.publicPath\n : this.options.build.publicPath\n }\n\n async setupMiddleware() {\n // Apply setupMiddleware from modules first\n await this.nuxt.callHook('render:setupMiddleware', this.app)\n\n // Compression middleware for production\n if (!this.options.dev) {\n const compressor = this.options.render.compressor\n if (typeof compressor === 'object') {\n // If only setting for `compression` are provided, require the module and insert\n // Prefer require instead of requireModule to keep dependency in nuxt-start\n const compression = require('compression')\n this.useMiddleware(compression(compressor))\n } else {\n // Else, require own compression middleware\n this.useMiddleware(compressor)\n }\n }\n\n // Add webpack middleware only for development\n if (this.options.dev) {\n this.useMiddleware(async (req, res, next) => {\n if (this.webpackDevMiddleware) {\n await this.webpackDevMiddleware(req, res)\n }\n if (this.webpackHotMiddleware) {\n await this.webpackHotMiddleware(req, res)\n }\n next()\n })\n }\n\n // open in editor for debug mode only\n if (this.options.debug && this.options.dev) {\n this.useMiddleware({\n path: '__open-in-editor',\n handler: launchMiddleware(this.options.editor)\n })\n }\n\n // For serving static/ files to /\n const staticMiddleware = serveStatic(\n path.resolve(this.options.srcDir, this.options.dir.static),\n this.options.render.static\n )\n staticMiddleware.prefix = this.options.render.static.prefix\n this.useMiddleware(staticMiddleware)\n\n // Serve .nuxt/dist/ files only for production\n // For dev they will be served with devMiddleware\n if (!this.options.dev) {\n const distDir = path.resolve(this.options.buildDir, 'dist', 'client')\n this.useMiddleware({\n path: this.publicPath,\n handler: serveStatic(\n distDir,\n this.options.render.dist\n )\n })\n }\n\n // Add User provided middleware\n this.options.serverMiddleware.forEach((m) => {\n this.useMiddleware(m)\n })\n\n // Finally use nuxtMiddleware\n this.useMiddleware(nuxtMiddleware.bind(this))\n\n // Error middleware for errors that occurred in middleware that declared above\n // Middleware should exactly take 4 arguments\n // https://github.com/senchalabs/connect#error-middleware\n\n // Apply errorMiddleware from modules first\n await this.nuxt.callHook('render:errorMiddleware', this.app)\n\n // Apply errorMiddleware from Nuxt\n this.useMiddleware(errorMiddleware.bind(this))\n }\n\n renderTemplate(ssr, opts) {\n // Fix problem with HTMLPlugin's minify option (#3392)\n opts.html_attrs = opts.HTML_ATTRS\n opts.body_attrs = opts.BODY_ATTRS\n\n const fn = ssr ? this.resources.ssrTemplate : this.resources.spaTemplate\n\n return fn(opts)\n }\n\n async renderRoute(url, context = {}) {\n /* istanbul ignore if */\n if (!this.isReady) {\n await waitFor(1000)\n return this.renderRoute(url, context)\n }\n\n // Log rendered url\n consola.debug(`Rendering url ${url}`)\n\n // Add url and isSever to the context\n context.url = url\n\n // Basic response if SSR is disabled or spa data provided\n const spa = context.spa || (context.res && context.res.spa)\n const ENV = this.options.env\n\n if (this.noSSR || spa) {\n const {\n HTML_ATTRS,\n BODY_ATTRS,\n HEAD,\n BODY_SCRIPTS,\n getPreloadFiles\n } = await this.metaRenderer.render(context)\n const APP =\n `<div id=\"__nuxt\">${this.resources.loadingHTML}</div>` + BODY_SCRIPTS\n\n // Detect 404 errors\n if (\n url.includes(this.options.build.publicPath) ||\n url.includes('__webpack')\n ) {\n const err = {\n statusCode: 404,\n message: this.options.messages.error_404,\n name: 'ResourceNotFound'\n }\n throw err\n }\n\n const html = this.renderTemplate(false, {\n HTML_ATTRS,\n BODY_ATTRS,\n HEAD,\n APP,\n ENV\n })\n\n return { html, getPreloadFiles }\n }\n\n // Call renderToString from the bundleRenderer and generate the HTML (will update the context as well)\n let APP = await this.bundleRenderer.renderToString(context)\n\n if (!context.nuxt.serverRendered) {\n APP = '<div id=\"__nuxt\"></div>'\n }\n const m = context.meta.inject()\n let HEAD =\n m.title.text() +\n m.meta.text() +\n m.link.text() +\n m.style.text() +\n m.script.text() +\n m.noscript.text()\n if (this.options._routerBaseSpecified) {\n HEAD += `<base href=\"${this.options.router.base}\">`\n }\n\n if (this.options.render.resourceHints) {\n HEAD += context.renderResourceHints()\n }\n\n await this.nuxt.callHook('render:routeContext', context.nuxt)\n\n const serializedSession = `window.__NUXT__=${serialize(context.nuxt, {\n isJSON: true\n })};`\n\n const cspScriptSrcHashSet = new Set()\n if (this.options.render.csp) {\n const { hashAlgorithm } = this.options.render.csp\n const hash = crypto.createHash(hashAlgorithm)\n hash.update(serializedSession)\n cspScriptSrcHashSet.add(`'${hashAlgorithm}-${hash.digest('base64')}'`)\n }\n\n APP += `<script>${serializedSession}</script>`\n APP += context.renderScripts()\n APP += m.script.text({ body: true })\n APP += m.noscript.text({ body: true })\n\n HEAD += context.renderStyles()\n\n const html = this.renderTemplate(true, {\n HTML_ATTRS: 'data-n-head-ssr ' + m.htmlAttrs.text(),\n BODY_ATTRS: m.bodyAttrs.text(),\n HEAD,\n APP,\n ENV\n })\n\n return {\n html,\n cspScriptSrcHashSet,\n getPreloadFiles: context.getPreloadFiles,\n error: context.nuxt.error,\n redirected: context.redirected\n }\n }\n\n async renderAndGetWindow(url, opts = {}) {\n /* istanbul ignore if */\n if (!jsdom) {\n try {\n jsdom = require('jsdom')\n } catch (e) /* istanbul ignore next */ {\n consola.error(`\n Fail when calling nuxt.renderAndGetWindow(url)\n jsdom module is not installed\n Please install jsdom with: npm install --save-dev jsdom\n `)\n throw e\n }\n }\n const options = Object.assign({\n resources: 'usable', // load subresources (https://github.com/tmpvar/jsdom#loading-subresources)\n runScripts: 'dangerously',\n virtualConsole: true,\n beforeParse(window) {\n // Mock window.scrollTo\n window.scrollTo = () => {}\n }\n }, opts)\n const jsdomErrHandler = (err) => { throw err }\n if (options.virtualConsole) {\n if (options.virtualConsole === true) {\n options.virtualConsole = new jsdom.VirtualConsole().sendTo(consola)\n }\n // throw error when window creation failed\n options.virtualConsole.on('jsdomError', jsdomErrHandler)\n }\n url = url || 'http://localhost:3000'\n const { window } = await jsdom.JSDOM.fromURL(url, options)\n // If Nuxt could not be loaded (error from the server-side)\n const nuxtExists = window.document.body.innerHTML.includes(\n this.options.render.ssr ? 'window.__NUXT__' : '<div id=\"__nuxt\">'\n )\n /* istanbul ignore if */\n if (!nuxtExists) {\n const error = new Error('Could not load the nuxt app')\n error.body = window.document.body.innerHTML\n throw error\n }\n // Used by nuxt.js to say when the components are loaded and the app ready\n await timeout(new Promise((resolve) => {\n window._onNuxtLoaded = () => resolve(window)\n }), 20000, 'Components loading in renderAndGetWindow was not completed in 20s')\n if (options.virtualConsole) {\n // after window initialized successfully\n options.virtualConsole.removeListener('jsdomError', jsdomErrHandler)\n }\n // Send back window object\n return window\n }\n}\n\nconst parseTemplate = templateStr =>\n _.template(templateStr, {\n interpolate: /{{([\\s\\S]+?)}}/g\n })\n\nexport const resourceMap = [\n {\n key: 'clientManifest',\n fileName: 'vue-ssr-client-manifest.json',\n transform: JSON.parse\n },\n {\n key: 'serverBundle',\n fileName: 'server-bundle.json',\n transform: JSON.parse\n },\n {\n key: 'ssrTemplate',\n fileName: 'index.ssr.html',\n transform: parseTemplate\n },\n {\n key: 'spaTemplate',\n fileName: 'index.spa.html',\n transform: parseTemplate\n }\n]\n","import Module from 'module'\nimport { resolve, join } from 'path'\nimport https from 'https'\n\nimport enableDestroy from 'server-destroy'\nimport _ from 'lodash'\nimport fs from 'fs-extra'\nimport consola from 'consola'\nimport chalk from 'chalk'\nimport esm from 'esm'\nimport ip from 'ip'\n\nimport Options from '../common/options'\nimport { sequence } from '../common/utils'\nimport packageJSON from '../../package.json'\n\nimport ModuleContainer from './module'\nimport Renderer from './renderer'\n\nexport default class Nuxt {\n constructor(options = {}) {\n this.options = Options.from(options)\n\n this.readyMessage = null\n this.initialized = false\n\n // Hooks\n this._hooks = {}\n this.hook = this.hook.bind(this)\n\n // Create instance of core components\n this.moduleContainer = new ModuleContainer(this)\n this.renderer = new Renderer(this)\n\n // Backward compatibility\n this.render = this.renderer.app\n this.renderRoute = this.renderer.renderRoute.bind(this.renderer)\n this.renderAndGetWindow = this.renderer.renderAndGetWindow.bind(\n this.renderer\n )\n this.resolvePath = this.resolvePath.bind(this)\n this.resolveAlias = this.resolveAlias.bind(this)\n\n // ESM Loader\n this.esm = esm(module, {})\n\n this._ready = this.ready().catch((err) => {\n consola.fatal(err)\n })\n }\n\n static get version() {\n return packageJSON.version\n }\n\n async ready() {\n if (this._ready) {\n return this._ready\n }\n\n // Add hooks\n if (_.isPlainObject(this.options.hooks)) {\n this.addHooks(this.options.hooks)\n } else if (typeof this.options.hooks === 'function') {\n this.options.hooks(this.hook)\n }\n\n // Await for modules\n await this.moduleContainer.ready()\n\n // Await for renderer to be ready\n await this.renderer.ready()\n\n this.initialized = true\n\n // Call ready hook\n await this.callHook('ready', this)\n\n return this\n }\n\n hook(name, fn) {\n if (!name || typeof fn !== 'function') {\n return\n }\n if (name === 'render:context') {\n name = 'render:routeContext'\n consola.warn('render:context hook has been deprecated, please use render:routeContext')\n }\n this._hooks[name] = this._hooks[name] || []\n this._hooks[name].push(fn)\n }\n\n async callHook(name, ...args) {\n if (!this._hooks[name]) {\n return\n }\n consola.debug(`Call ${name} hooks (${this._hooks[name].length})`)\n try {\n await sequence(this._hooks[name], fn => fn(...args))\n } catch (err) {\n consola.error(err)\n this.callHook('error', err)\n }\n }\n\n clearHook(name) {\n if (name) {\n delete this._hooks[name]\n }\n }\n\n flatHooks(configHooks, hooks = {}, parentName) {\n Object.keys(configHooks).forEach((key) => {\n const subHook = configHooks[key]\n const name = parentName ? `${parentName}:${key}` : key\n if (typeof subHook === 'object' && subHook !== null) {\n this.flatHooks(subHook, hooks, name)\n } else {\n hooks[name] = subHook\n }\n })\n return hooks\n }\n\n addHooks(configHooks) {\n const hooks = this.flatHooks(configHooks)\n Object.keys(hooks).filter(Boolean).forEach((key) => {\n [].concat(hooks[key]).forEach(h => this.hook(key, h))\n })\n }\n\n showReady(clear = true) {\n if (!this.readyMessage) {\n return\n }\n consola.ready({\n message: this.readyMessage,\n badge: true,\n clear\n })\n this.readyMessage = null\n }\n\n listen(port = 3000, host = 'localhost', socket = null) {\n return this.ready().then(() => new Promise((resolve, reject) => {\n if (!socket && typeof this.options.server.socket === 'string') {\n socket = this.options.server.socket\n }\n\n const args = { exclusive: false }\n\n if (socket) {\n args.path = socket\n } else {\n args.port = port\n args.host = host\n }\n\n let appServer\n const isHttps = Boolean(this.options.server.https)\n\n if (isHttps) {\n let httpsOptions\n\n if (this.options.server.https === true) {\n httpsOptions = {}\n } else {\n httpsOptions = this.options.server.https\n }\n\n appServer = https.createServer(httpsOptions, this.renderer.app)\n } else {\n appServer = this.renderer.app\n }\n\n const server = appServer.listen(\n args,\n (err) => {\n /* istanbul ignore if */\n if (err) {\n return reject(err)\n }\n\n let listenURL\n\n if (!socket) {\n ({ address: host, port } = server.address())\n if (host === '127.0.0.1') {\n host = 'localhost'\n } else if (host === '0.0.0.0') {\n host = ip.address()\n }\n\n listenURL = chalk.underline.blue(`http${isHttps ? 's' : ''}://${host}:${port}`)\n this.readyMessage = `Listening on ${listenURL}`\n } else {\n listenURL = chalk.underline.blue(`unix+http://${socket}`)\n this.readyMessage = `Listening on ${listenURL}`\n }\n\n // Close server on nuxt close\n this.hook(\n 'close',\n () =>\n new Promise((resolve, reject) => {\n // Destroy server by forcing every connection to be closed\n server.listening && server.destroy((err) => {\n consola.debug('server closed')\n /* istanbul ignore if */\n if (err) {\n return reject(err)\n }\n resolve()\n })\n })\n )\n\n if (socket) {\n this.callHook('listen', server, { path: socket }).then(resolve)\n } else {\n this.callHook('listen', server, { port, host }).then(resolve)\n }\n }\n )\n\n // Add server.destroy(cb) method\n enableDestroy(server)\n }))\n }\n\n resolveModule(path) {\n try {\n const resolvedPath = Module._resolveFilename(path, {\n paths: this.options.modulesDir\n })\n\n return resolvedPath\n } catch (error) {\n if (error.code === 'MODULE_NOT_FOUND') {\n return null\n } else {\n throw error\n }\n }\n }\n\n resolveAlias(path) {\n const modulePath = this.resolveModule(path)\n\n // Try to resolve it as if it were a regular node_module\n // Package first. Fixes issue with @<org> scoped packages\n if (modulePath != null) {\n return modulePath\n }\n\n if (path.indexOf('@@') === 0 || path.indexOf('~~') === 0) {\n return join(this.options.rootDir, path.substr(2))\n }\n\n if (path.indexOf('@') === 0 || path.indexOf('~') === 0) {\n return join(this.options.srcDir, path.substr(1))\n }\n\n return resolve(this.options.srcDir, path)\n }\n\n resolvePath(path) {\n const _path = this.resolveAlias(path)\n\n if (fs.existsSync(_path)) {\n return _path\n }\n\n for (const ext of this.options.extensions) {\n if (fs.existsSync(_path + '.' + ext)) {\n return _path + '.' + ext\n }\n }\n\n throw new Error(`Cannot resolve \"${path}\" from \"${_path}\"`)\n }\n\n requireModule(_path, opts = {}) {\n const _resolvedPath = this.resolvePath(_path)\n const m = opts.esm === false ? require(_resolvedPath) : this.esm(_resolvedPath)\n return (m && m.default) || m\n }\n\n async close(callback) {\n await this.callHook('close', this)\n\n /* istanbul ignore if */\n if (typeof callback === 'function') {\n await callback()\n }\n }\n}\n","import Module from './module'\nimport Nuxt from './nuxt'\nimport Renderer from './renderer'\n\nexport default {\n Nuxt,\n Module,\n Renderer\n}\n","import path from 'path'\n\nimport { warmup } from 'thread-loader'\n\n// https://github.com/webpack-contrib/thread-loader\n// https://github.com/webpack-contrib/cache-loader\n\nexport default class PerfLoader {\n constructor(options) {\n this.options = options\n this.warmup = warmup\n this.workerPools = {\n js: {\n name: 'js',\n poolTimeout: this.options.dev ? Infinity : 2000\n },\n css: {\n name: 'css',\n poolTimeout: this.options.dev ? Infinity : 2000\n }\n }\n }\n\n warmupAll() {\n this.warmup(this.workerPools.js, ['babel-loader', '@babel/preset-env'])\n this.warmup(this.workerPools.css, ['css-loader'])\n }\n\n pool(poolName, _loaders) {\n const loaders = [].concat(_loaders)\n\n if (this.options.build.parallel) {\n const pool = this.workerPools[poolName]\n\n if (pool) {\n loaders.unshift({\n loader: 'thread-loader',\n options: pool\n })\n }\n }\n\n if (this.options.build.cache) {\n loaders.unshift({\n loader: 'cache-loader',\n options: {\n cacheDirectory: path.resolve('node_modules/.cache/cache-loader')\n }\n })\n }\n\n return loaders\n }\n\n poolOneOf(poolName, oneOfRules) {\n return oneOfRules.map(rule => Object.assign({}, rule, {\n use: this.pool(poolName, rule.use)\n }))\n }\n}\n","import chalk from 'chalk'\n\nconst prefix = `[vue-server-renderer-webpack-plugin]`\nexport const warn = msg => console.error(chalk.red(`${prefix} ${msg}\\n`)) // eslint-disable-line no-console\nexport const tip = msg => console.log(chalk.yellow(`${prefix} ${msg}\\n`)) // eslint-disable-line no-console\n\nexport const validate = (compiler) => {\n if (compiler.options.target !== 'node') {\n warn('webpack config `target` should be \"node\".')\n }\n\n if (compiler.options.output && compiler.options.output.libraryTarget !== 'commonjs2') {\n warn('webpack config `output.libraryTarget` should be \"commonjs2\".')\n }\n\n if (!compiler.options.externals) {\n tip(\n 'It is recommended to externalize dependencies in the server build for ' +\n 'better build performance.'\n )\n }\n}\n\nexport const onEmit = (compiler, name, hook) => {\n if (compiler.hooks) {\n // Webpack >= 4.0.0\n compiler.hooks.emit.tapAsync(name, hook)\n } else {\n // Webpack < 4.0.0\n compiler.plugin('emit', hook)\n }\n}\n\nexport const isJS = file => /\\.js(\\?[^.]+)?$/.test(file)\n\nexport const isCSS = file => /\\.css(\\?[^.]+)?$/.test(file)\n","import hash from 'hash-sum'\nimport { uniq } from 'lodash'\nimport { isJS, isCSS, onEmit } from './util'\n\nexport default class VueSSRClientPlugin {\n constructor(options = {}) {\n this.options = Object.assign({\n filename: 'vue-ssr-client-manifest.json'\n }, options)\n }\n\n apply(compiler) {\n onEmit(compiler, 'vue-client-plugin', (compilation, cb) => {\n const stats = compilation.getStats().toJson()\n\n const allFiles = uniq(stats.assets\n .map(a => a.name))\n\n const initialFiles = uniq(Object.keys(stats.entrypoints)\n .map(name => stats.entrypoints[name].assets)\n .reduce((assets, all) => all.concat(assets), [])\n .filter(file => isJS(file) || isCSS(file)))\n\n const asyncFiles = allFiles\n .filter(file => isJS(file) || isCSS(file))\n .filter(file => initialFiles.indexOf(file) < 0)\n\n const manifest = {\n publicPath: stats.publicPath,\n all: allFiles,\n initial: initialFiles,\n async: asyncFiles,\n modules: { /* [identifier: string]: Array<index: number> */ }\n }\n\n const assetModules = stats.modules.filter(m => m.assets.length)\n const fileToIndex = file => manifest.all.indexOf(file)\n stats.modules.forEach((m) => {\n // ignore modules duplicated in multiple chunks\n if (m.chunks.length === 1) {\n const cid = m.chunks[0]\n const chunk = stats.chunks.find(c => c.id === cid)\n if (!chunk || !chunk.files) {\n return\n }\n const id = m.identifier.replace(/\\s\\w+$/, '') // remove appended hash\n const files = manifest.modules[hash(id)] = chunk.files.map(fileToIndex)\n // find all asset modules associated with the same chunk\n assetModules.forEach((m) => {\n if (m.chunks.some(id => id === cid)) {\n files.push.apply(files, m.assets.map(fileToIndex))\n }\n })\n }\n })\n\n // const debug = (file, obj) => {\n // require('fs').writeFileSync(__dirname + '/' + file, JSON.stringify(obj, null, 2))\n // }\n // debug('stats.json', stats)\n // debug('client-manifest.json', manifest)\n\n const json = JSON.stringify(manifest, null, 2)\n compilation.assets[this.options.filename] = {\n source: () => json,\n size: () => json.length\n }\n cb()\n })\n }\n}\n","import fs from 'fs'\nimport path from 'path'\n\nimport _ from 'lodash'\nimport createResolver from 'postcss-import-resolver'\n\nimport { isPureObject } from '../../../common/utils'\n\nexport default class PostcssConfig {\n constructor(options, nuxt) {\n this.nuxt = nuxt\n this.dev = options.dev\n this.postcss = options.build.postcss\n this.srcDir = options.srcDir\n this.rootDir = options.rootDir\n this.cssSourceMap = options.build.cssSourceMap\n this.modulesDir = options.modulesDir\n }\n\n get defaultConfig() {\n return {\n useConfigFile: false,\n sourceMap: this.cssSourceMap,\n plugins: {\n // https://github.com/postcss/postcss-import\n 'postcss-import': {\n resolve: createResolver({\n alias: {\n '~': path.join(this.srcDir),\n '~~': path.join(this.rootDir),\n '@': path.join(this.srcDir),\n '@@': path.join(this.rootDir)\n },\n modules: [\n this.srcDir,\n this.rootDir,\n ...this.modulesDir\n ]\n })\n },\n\n // https://github.com/postcss/postcss-url\n 'postcss-url': {},\n\n // https://github.com/csstools/postcss-preset-env\n 'postcss-preset-env': this.preset || {},\n 'cssnano': this.dev ? false : { preset: 'default' }\n }\n }\n }\n\n configFromFile() {\n // Search for postCSS config file and use it if exists\n // https://github.com/michael-ciniawsky/postcss-load-config\n for (const dir of [this.srcDir, this.rootDir]) {\n for (const file of [\n 'postcss.config.js',\n '.postcssrc.js',\n '.postcssrc',\n '.postcssrc.json',\n '.postcssrc.yaml'\n ]) {\n if (fs.existsSync(path.resolve(dir, file))) {\n const postcssConfigPath = path.resolve(dir, file)\n return {\n sourceMap: this.cssSourceMap,\n config: {\n path: postcssConfigPath\n }\n }\n }\n }\n }\n }\n\n normalize(config) {\n if (Array.isArray(config)) {\n config = { plugins: config }\n }\n return config\n }\n\n loadPlugins(config) {\n const plugins = config.plugins\n if (isPureObject(plugins)) {\n // Map postcss plugins into instances on object mode once\n config.plugins = Object.keys(plugins)\n .map((p) => {\n const plugin = require(p)\n const opts = plugins[p]\n if (opts === false) return // Disabled\n const instance = plugin(opts)\n return instance\n })\n .filter(e => e)\n }\n }\n\n config() {\n /* istanbul ignore if */\n if (!this.postcss) {\n return false\n }\n\n let config = this.configFromFile()\n if (config) {\n return config\n }\n\n config = this.normalize(_.cloneDeep(this.postcss))\n\n // Apply default plugins\n if (isPureObject(config)) {\n if (config.preset) {\n this.preset = config.preset\n delete config.preset\n }\n _.defaults(config, this.defaultConfig)\n\n this.loadPlugins(config)\n }\n\n return config\n }\n}\n","import MiniCssExtractPlugin from 'mini-css-extract-plugin'\nimport PostcssConfig from './postcss'\n\nexport default class StyleLoader {\n constructor(options, nuxt, { isServer }) {\n this.isServer = isServer\n this.dev = options.dev\n this.srcDir = options.srcDir\n this.assetsDir = options.dir.assets\n this.staticDir = options.dir.static\n this.loaders = options.build.loaders\n this.extractCSS = options.build.extractCSS\n this.resources = options.build.styleResources\n this.sourceMap = Boolean(options.build.cssSourceMap)\n\n if (options.build.postcss) {\n this.postcssConfig = new PostcssConfig(options, nuxt)\n }\n }\n\n normalize(loaders) {\n loaders = Array.isArray(loaders) ? loaders : [loaders]\n return loaders.map(loader => (typeof loader === 'string' ? { loader } : loader))\n }\n\n styleResource(ext) {\n const extResource = this.resources[ext]\n // style-resources-loader\n // https://github.com/yenshih/style-resources-loader\n if (extResource) {\n const patterns = Array.isArray(extResource)\n ? extResource\n : [extResource]\n\n return {\n loader: 'style-resources-loader',\n options: Object.assign(\n { patterns },\n this.resources.options || {}\n )\n }\n }\n }\n\n postcss() {\n // postcss-loader\n // https://github.com/postcss/postcss-loader\n if (this.postcssConfig) {\n const config = this.postcssConfig.config()\n if (config) {\n return {\n loader: 'postcss-loader',\n options: Object.assign({ sourceMap: this.sourceMap }, config)\n }\n }\n }\n }\n\n css(options) {\n return {\n loader: (this.isServer && this.extractCSS) ? 'css-loader/locals' : 'css-loader',\n options\n }\n }\n\n cssModules(options) {\n options.modules = true\n return this.css(options)\n }\n\n extract() {\n if (this.extractCSS && !this.isServer) {\n return MiniCssExtractPlugin.loader\n }\n }\n\n vueStyle() {\n // https://github.com/vuejs/vue-style-loader\n return {\n loader: 'vue-style-loader',\n options: this.loaders.vueStyle\n }\n }\n\n apply(ext, loaders = []) {\n const customLoaders = [].concat(\n this.postcss(loaders),\n this.normalize(loaders),\n this.styleResource(ext)\n ).filter(Boolean)\n\n const { css: cssOptions, cssModules: cssModulesOptions } = this.loaders\n cssOptions.importLoaders = cssModulesOptions.importLoaders = customLoaders.length\n\n const styleLoader = this.extract() || this.vueStyle()\n\n return [\n // This matches <style module>\n {\n resourceQuery: /module/,\n use: [].concat(\n styleLoader,\n this.cssModules(cssModulesOptions),\n customLoaders\n )\n },\n // This matches plain <style> or <style scoped>\n {\n use: [].concat(\n styleLoader,\n this.css(cssOptions),\n customLoaders\n )\n }\n ]\n }\n}\n","export default class WarnFixPlugin {\n apply(compiler) /* istanbul ignore next */ {\n compiler.hooks.done.tap('warnfix-plugin', (stats) => {\n stats.compilation.warnings = stats.compilation.warnings.filter((warn) => {\n if (\n warn.name === 'ModuleDependencyWarning' &&\n warn.message.includes(`export 'default'`) &&\n warn.message.includes('nuxt_plugin_')\n ) {\n return false\n }\n return true\n })\n })\n }\n}\n","\nexport default class StatsPlugin {\n constructor(statsOptions) {\n this.statsOptions = statsOptions\n }\n\n apply(compiler) {\n compiler.hooks.done.tap('stats-plugin', (stats) => {\n process.stdout.write(\n '\\n' +\n stats.toString(this.statsOptions) +\n '\\n'\n )\n })\n }\n}\n","import path from 'path'\nimport consola from 'consola'\n\nimport TimeFixPlugin from 'time-fix-plugin'\nimport _ from 'lodash'\nimport VueLoader from 'vue-loader'\nimport MiniCssExtractPlugin from 'mini-css-extract-plugin'\nimport WebpackBar from 'webpackbar'\n\nimport { isUrl, urlJoin } from '../../common/utils'\nimport StyleLoader from './utils/style-loader'\nimport WarnFixPlugin from './plugins/warnfix'\nimport StatsPlugin from './plugins/stats'\n\nexport default class WebpackBaseConfig {\n constructor(builder, options) {\n this.name = options.name\n this.isServer = options.isServer\n this.builder = builder\n this.nuxt = this.builder.nuxt\n this.isStatic = builder.isStatic\n this.options = builder.options\n this.spinner = builder.spinner\n this.loaders = this.options.build.loaders\n }\n\n get nuxtEnv() {\n return {\n isDev: this.options.dev,\n isServer: this.isServer,\n isClient: !this.isServer\n }\n }\n\n getBabelOptions() {\n const options = _.clone(this.options.build.babel)\n\n if (typeof options.presets === 'function') {\n options.presets = options.presets({ isServer: this.isServer })\n }\n\n if (!options.babelrc && !options.presets) {\n options.presets = [\n [\n require.resolve('@nuxtjs/babel-preset-app'),\n {\n buildTarget: this.isServer ? 'server' : 'client'\n }\n ]\n ]\n }\n\n return options\n }\n\n getFileName(key) {\n let fileName = this.options.build.filenames[key]\n if (typeof fileName === 'function') {\n fileName = fileName(this.nuxtEnv)\n }\n if (this.options.dev) {\n const hash = /\\[(chunkhash|contenthash|hash)(?::(\\d+))?\\]/.exec(fileName)\n if (hash) {\n consola.warn(`Notice: Please do not use ${hash[1]} in dev mode to prevent memory leak`)\n }\n }\n return fileName\n }\n\n devtool() {\n return false\n }\n\n env() {\n const env = {\n 'process.mode': JSON.stringify(this.options.mode),\n 'process.static': this.isStatic\n }\n _.each(this.options.env, (value, key) => {\n env['process.env.' + key] =\n ['boolean', 'number'].indexOf(typeof value) !== -1\n ? value\n : JSON.stringify(value)\n })\n return env\n }\n\n output() {\n return {\n path: path.resolve(this.options.buildDir, 'dist', this.isServer ? 'server' : 'client'),\n filename: this.getFileName('app'),\n chunkFilename: this.getFileName('chunk'),\n publicPath: isUrl(this.options.build.publicPath)\n ? this.options.build.publicPath\n : urlJoin(this.options.router.base, this.options.build.publicPath)\n }\n }\n\n optimization() {\n return this.options.build.optimization\n }\n\n alias() {\n const { srcDir, rootDir, dir: { assets: assetsDir, static: staticDir } } = this.options\n\n return {\n '~': path.join(srcDir),\n '~~': path.join(rootDir),\n '@': path.join(srcDir),\n '@@': path.join(rootDir),\n [assetsDir]: path.join(srcDir, assetsDir),\n [staticDir]: path.join(srcDir, staticDir)\n }\n }\n\n rules() {\n const styleLoader = new StyleLoader(\n this.options,\n this.builder.nuxt,\n { isServer: this.isServer }\n )\n\n const perfLoader = this.builder.perfLoader\n\n return [\n {\n test: /\\.vue$/,\n loader: 'vue-loader',\n options: this.loaders.vue\n },\n {\n test: /\\.pug$/,\n oneOf: [\n {\n resourceQuery: /^\\?vue/,\n use: [{\n loader: 'pug-plain-loader',\n options: this.loaders.pugPlain\n }]\n },\n {\n use: [\n 'raw-loader',\n {\n loader: 'pug-plain-loader',\n options: this.loaders.pugPlain\n }\n ]\n }\n ]\n },\n {\n test: /\\.jsx?$/,\n exclude: (file) => {\n // not exclude files outside node_modules\n if (/node_modules/.test(file)) {\n for (const module of [/\\.vue\\.js/].concat(this.options.build.transpile)) {\n // item in transpile can be string or regex object\n if (module.test(file)) {\n return false\n }\n }\n return true\n }\n },\n use: perfLoader.pool('js', {\n loader: 'babel-loader',\n options: this.getBabelOptions()\n })\n },\n {\n test: /\\.css$/,\n oneOf: perfLoader.poolOneOf('css', styleLoader.apply('css'))\n },\n {\n test: /\\.less$/,\n oneOf: perfLoader.poolOneOf('css', styleLoader.apply('less', {\n loader: 'less-loader',\n options: this.loaders.less\n }))\n },\n {\n test: /\\.sass$/,\n oneOf: perfLoader.poolOneOf('css', styleLoader.apply('sass', {\n loader: 'sass-loader',\n options: this.loaders.sass\n }))\n },\n {\n test: /\\.scss$/,\n oneOf: perfLoader.poolOneOf('css', styleLoader.apply('scss', {\n loader: 'sass-loader',\n options: this.loaders.scss\n }))\n },\n {\n test: /\\.styl(us)?$/,\n oneOf: perfLoader.poolOneOf('css', styleLoader.apply('stylus', {\n loader: 'stylus-loader',\n options: this.loaders.stylus\n }))\n },\n {\n test: /\\.(png|jpe?g|gif|svg|webp)$/,\n use: perfLoader.pool('assets', {\n loader: 'url-loader',\n options: Object.assign(\n this.loaders.imgUrl,\n { name: this.getFileName('img') }\n )\n })\n },\n {\n test: /\\.(woff2?|eot|ttf|otf)(\\?.*)?$/,\n use: perfLoader.pool('assets', {\n loader: 'url-loader',\n options: Object.assign(\n this.loaders.fontUrl,\n { name: this.getFileName('font') }\n )\n })\n },\n {\n test: /\\.(webm|mp4|ogv)$/,\n use: perfLoader.pool('assets', {\n loader: 'file-loader',\n options: Object.assign(\n this.loaders.file,\n { name: this.getFileName('video') }\n )\n })\n }\n ]\n }\n\n plugins() {\n const plugins = [ new VueLoader.VueLoaderPlugin() ]\n\n Array.prototype.push.apply(plugins, this.options.build.plugins || [])\n\n // Add timefix-plugin before others plugins\n if (this.options.dev) {\n plugins.unshift(new TimeFixPlugin())\n }\n\n // Hide warnings about plugins without a default export (#1179)\n plugins.push(new WarnFixPlugin())\n\n // Build progress indicator\n plugins.push(new WebpackBar({\n profile: this.options.build.profile,\n name: this.isServer ? 'server' : 'client',\n color: this.isServer ? 'orange' : 'green',\n compiledIn: false,\n done: (states) => {\n if (this.options.dev) {\n const hasErrors = Object.values(states).some(state => state.stats.hasErrors())\n\n if (!hasErrors) {\n this.nuxt.showReady(false)\n }\n }\n }\n }))\n\n // Add stats plugin\n if (!this.options.dev && this.options.build.stats) {\n plugins.push(new StatsPlugin(this.options.build.stats))\n }\n\n // CSS extraction\n // MiniCssExtractPlugin does not currently supports SSR\n // https://github.com/webpack-contrib/mini-css-extract-plugin/issues/48\n // So we use css-loader/locals as a fallback (utils/style-loader)\n if (this.options.build.extractCSS && !this.isServer) {\n plugins.push(new MiniCssExtractPlugin(Object.assign({\n filename: this.getFileName('css'),\n chunkFilename: this.getFileName('css')\n }, this.options.build.extractCSS)))\n }\n\n return plugins\n }\n\n extendConfig(config) {\n if (typeof this.options.build.extend === 'function') {\n const extendedConfig = this.options.build.extend.call(\n this.builder, config, { loaders: this.loaders, ...this.nuxtEnv }\n )\n // Only overwrite config when something is returned for backwards compatibility\n if (extendedConfig !== undefined) {\n return extendedConfig\n }\n }\n return config\n }\n\n config() {\n // Prioritize nested node_modules in webpack search path (#2558)\n const webpackModulesDir = ['node_modules'].concat(this.options.modulesDir)\n const config = {\n name: this.name,\n mode: this.options.dev ? 'development' : 'production',\n devtool: this.devtool(),\n optimization: this.optimization(),\n output: this.output(),\n performance: {\n maxEntrypointSize: 1000 * 1024,\n hints: this.options.dev ? false : 'warning'\n },\n resolve: {\n extensions: ['.wasm', '.mjs', '.js', '.json', '.vue', '.jsx'],\n alias: this.alias(),\n modules: webpackModulesDir\n },\n resolveLoader: {\n modules: webpackModulesDir\n },\n module: {\n rules: this.rules()\n },\n plugins: this.plugins()\n }\n\n const extendedConfig = this.extendConfig(config)\n\n // Clone deep avoid leaking config between Client and Server\n return _.cloneDeep(extendedConfig)\n }\n}\n","import path from 'path'\n\nimport webpack from 'webpack'\nimport HTMLPlugin from 'html-webpack-plugin'\nimport BundleAnalyzer from 'webpack-bundle-analyzer'\nimport TerserWebpackPlugin from 'terser-webpack-plugin'\nimport OptimizeCSSAssetsPlugin from 'optimize-css-assets-webpack-plugin'\nimport FriendlyErrorsWebpackPlugin from '@nuxtjs/friendly-errors-webpack-plugin'\n\nimport VueSSRClientPlugin from './plugins/vue/client'\nimport WebpackBaseConfig from './base'\n\nexport default class WebpackClientConfig extends WebpackBaseConfig {\n constructor(builder) {\n super(builder, { name: 'client', isServer: false })\n }\n\n env() {\n return Object.assign(super.env(), {\n 'process.env.VUE_ENV': JSON.stringify('client'),\n 'process.browser': true,\n 'process.client': true,\n 'process.server': false\n })\n }\n\n optimization() {\n const optimization = super.optimization()\n\n // Small, known and common modules which are usually used project-wise\n // Sum of them may not be more than 244 KiB\n if (\n this.options.build.splitChunks.commons === true &&\n optimization.splitChunks.cacheGroups.commons === undefined\n ) {\n optimization.splitChunks.cacheGroups.commons = {\n test: /node_modules[\\\\/](vue|vue-loader|vue-router|vuex|vue-meta|core-js|@babel\\/runtime|axios|webpack|setimmediate|timers-browserify|process|regenerator-runtime|cookie|js-cookie|is-buffer|dotprop|nuxt\\.js)[\\\\/]/,\n chunks: 'all',\n priority: 10,\n name: true\n }\n }\n\n return optimization\n }\n\n plugins() {\n const plugins = super.plugins()\n\n // Generate output HTML for SSR\n if (this.options.build.ssr) {\n plugins.push(\n new HTMLPlugin({\n filename: '../server/index.ssr.html',\n template: this.options.appTemplatePath,\n minify: true,\n inject: false // Resources will be injected using bundleRenderer\n })\n )\n }\n\n plugins.push(\n new HTMLPlugin({\n filename: '../server/index.spa.html',\n template: this.options.appTemplatePath,\n minify: true,\n inject: true,\n chunksSortMode: 'dependency'\n }),\n new VueSSRClientPlugin({\n filename: '../server/vue-ssr-client-manifest.json'\n }),\n new webpack.DefinePlugin(this.env())\n )\n\n if (this.options.dev) {\n // TODO: webpackHotUpdate is not defined: https://github.com/webpack/webpack/issues/6693\n plugins.push(new webpack.HotModuleReplacementPlugin())\n }\n\n // Webpack Bundle Analyzer\n // https://github.com/webpack-contrib/webpack-bundle-analyzer\n if (!this.options.dev && this.options.build.analyze) {\n const statsDir = path.resolve(this.options.buildDir, 'stats')\n\n plugins.push(new BundleAnalyzer.BundleAnalyzerPlugin(Object.assign({\n analyzerMode: 'static',\n defaultSizes: 'gzip',\n generateStatsFile: true,\n openAnalyzer: !this.options.build.quiet,\n reportFilename: path.resolve(statsDir, 'client.html'),\n statsFilename: path.resolve(statsDir, 'client.json')\n }, this.options.build.analyze)))\n }\n\n return plugins\n }\n\n extendConfig() {\n const config = super.extendConfig(...arguments)\n\n if (!this.options.dev && !config.optimization.minimizer) {\n config.optimization.minimizer = []\n\n // https://github.com/webpack-contrib/terser-webpack-plugin\n const terserJsPlugin = new TerserWebpackPlugin({\n parallel: true,\n cache: this.options.build.cache,\n sourceMap: config.devtool && /source-?map/.test(config.devtool),\n extractComments: {\n filename: 'LICENSES'\n },\n terserOptions: {\n output: {\n comments: /^\\**!|@preserve|@license|@cc_on/\n }\n }\n })\n config.optimization.minimizer.push(terserJsPlugin)\n\n // https://github.com/NMFR/optimize-css-assets-webpack-plugin\n // https://github.com/webpack-contrib/mini-css-extract-plugin#minimizing-for-production\n // TODO: Remove OptimizeCSSAssetsPlugin when upgrading to webpack 5\n if (this.options.build.extractCSS) {\n const optimizeCSSPlugin = new OptimizeCSSAssetsPlugin({})\n config.optimization.minimizer.push(optimizeCSSPlugin)\n }\n }\n\n return config\n }\n\n config() {\n const config = super.config()\n\n // Entry points\n config.entry = {\n app: [path.resolve(this.options.buildDir, 'client.js')]\n }\n\n // Add HMR support\n if (this.options.dev) {\n config.entry.app.unshift(\n // https://github.com/glenjamin/webpack-hot-middleware#config\n `webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=${\n this.options.router.base\n }/__webpack_hmr`.replace(/\\/\\//g, '/')\n )\n }\n\n // Add friendly error plugin\n if (this.options.dev && !this.options.build.quiet) {\n config.plugins.push(\n new FriendlyErrorsWebpackPlugin({\n clearConsole: true,\n logLevel: 'WARNING'\n })\n )\n }\n\n return config\n }\n}\n","import { validate, isJS, onEmit } from './util'\n\nexport default class VueSSRServerPlugin {\n constructor(options = {}) {\n this.options = Object.assign({\n filename: 'vue-ssr-server-bundle.json'\n }, options)\n }\n\n apply(compiler) {\n validate(compiler)\n\n onEmit(compiler, 'vue-server-plugin', (compilation, cb) => {\n const stats = compilation.getStats().toJson()\n const entryName = Object.keys(stats.entrypoints)[0]\n const entryInfo = stats.entrypoints[entryName]\n\n if (!entryInfo) {\n // #5553\n return cb()\n }\n\n const entryAssets = entryInfo.assets.filter(isJS)\n\n if (entryAssets.length > 1) {\n throw new Error(\n `Server-side bundle should have one single entry file. ` +\n `Avoid using CommonsChunkPlugin in the server config.`\n )\n }\n\n const entry = entryAssets[0]\n if (!entry || typeof entry !== 'string') {\n throw new Error(\n `Entry \"${entryName}\" not found. Did you specify the correct entry option?`\n )\n }\n\n const bundle = {\n entry,\n files: {},\n maps: {}\n }\n\n stats.assets.forEach((asset) => {\n if (asset.name.match(/\\.js$/)) {\n bundle.files[asset.name] = compilation.assets[asset.name].source()\n } else if (asset.name.match(/\\.js\\.map$/)) {\n bundle.maps[asset.name.replace(/\\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())\n }\n // do not emit anything else for server\n delete compilation.assets[asset.name]\n })\n\n const json = JSON.stringify(bundle, null, 2)\n const filename = this.options.filename\n\n compilation.assets[filename] = {\n source: () => json,\n size: () => json.length\n }\n\n cb()\n })\n }\n}\n","import path from 'path'\nimport fs from 'fs'\n\nimport webpack from 'webpack'\nimport nodeExternals from 'webpack-node-externals'\n\nimport BaseConfig from './base'\nimport VueSSRServerPlugin from './plugins/vue/server'\n\nexport default class WebpackServerConfig extends BaseConfig {\n constructor(builder) {\n super(builder, { name: 'server', isServer: true })\n }\n\n devtool() {\n return 'cheap-source-map'\n }\n\n env() {\n return Object.assign(super.env(), {\n 'process.env.VUE_ENV': JSON.stringify('server'),\n 'process.browser': false,\n 'process.client': false,\n 'process.server': true\n })\n }\n\n optimization() {\n return {\n splitChunks: false,\n minimizer: []\n }\n }\n\n plugins() {\n const plugins = super.plugins()\n plugins.push(\n new VueSSRServerPlugin({\n filename: 'server-bundle.json'\n }),\n new webpack.DefinePlugin(this.env())\n )\n return plugins\n }\n\n config() {\n const config = super.config()\n\n Object.assign(config, {\n target: 'node',\n node: false,\n entry: {\n app: [path.resolve(this.options.buildDir, 'server.js')]\n },\n output: Object.assign({}, config.output, {\n filename: 'server-bundle.js',\n libraryTarget: 'commonjs2'\n }),\n performance: {\n hints: false,\n maxAssetSize: Infinity\n },\n externals: []\n })\n\n // https://webpack.js.org/configuration/externals/#externals\n // https://github.com/liady/webpack-node-externals\n // https://vue-loader.vuejs.org/migrating.html#ssr-externals\n this.options.modulesDir.forEach((dir) => {\n if (fs.existsSync(dir)) {\n config.externals.push(\n nodeExternals({\n whitelist: [\n /\\.css$/,\n /\\?vue&type=style/,\n ...this.options.build.transpile\n ],\n modulesDir: dir\n })\n )\n }\n })\n\n return config\n }\n}\n","import path from 'path'\nimport fs from 'fs'\n\nimport pify from 'pify'\nimport _ from 'lodash'\nimport chokidar from 'chokidar'\nimport fsExtra from 'fs-extra'\nimport hash from 'hash-sum'\nimport webpack from 'webpack'\nimport serialize from 'serialize-javascript'\nimport MFS from 'memory-fs'\nimport webpackDevMiddleware from 'webpack-dev-middleware'\nimport webpackHotMiddleware from 'webpack-hot-middleware'\nimport Glob from 'glob'\nimport upath from 'upath'\nimport consola from 'consola'\n\nimport { r, wp, wChunk, createRoutes, parallel, sequence, relativeTo, waitFor } from '../common/utils'\nimport Options from '../common/options'\n\nimport PerfLoader from './webpack/utils/perf-loader'\nimport ClientWebpackConfig from './webpack/client'\nimport ServerWebpackConfig from './webpack/server'\n\nconst glob = pify(Glob)\n\nexport default class Builder {\n constructor(nuxt) {\n this.nuxt = nuxt\n this.isStatic = false // Flag to know if the build is for a generated app\n this.options = nuxt.options\n\n // Fields that set on build\n this.compilers = []\n this.compilersWatching = []\n this.webpackDevMiddleware = null\n this.webpackHotMiddleware = null\n this.watchers = {\n files: null,\n custom: null,\n restart: null\n }\n this.perfLoader = null\n\n // Helper to resolve build paths\n this.relativeToBuild = (...args) =>\n relativeTo(this.options.buildDir, ...args)\n\n this._buildStatus = STATUS.INITIAL\n\n // Stop watching on nuxt.close()\n if (this.options.dev) {\n this.nuxt.hook('close', () => this.unwatch())\n }\n\n // Initialize shared FS and Cache\n if (this.options.dev) {\n this.mfs = new MFS()\n }\n\n // if(!this.options.dev) {\n // TODO: enable again when unsafe concern resolved.(common/options.js:42)\n // this.nuxt.hook('build:done', () => this.generateConfig())\n // }\n }\n\n normalizePlugins() {\n return _.uniqBy(\n this.options.plugins.map((p) => {\n if (typeof p === 'string') p = { src: p }\n const pluginBaseName = path.basename(p.src, path.extname(p.src)).replace(\n /[^a-zA-Z?\\d\\s:]/g,\n ''\n )\n return {\n src: this.nuxt.resolveAlias(p.src),\n ssr: p.ssr !== false,\n name: 'nuxt_plugin_' + pluginBaseName + '_' + hash(p.src)\n }\n }),\n p => p.name\n )\n }\n\n forGenerate() {\n this.isStatic = true\n }\n\n async build() {\n // Avoid calling build() method multiple times when dev:true\n /* istanbul ignore if */\n if (this._buildStatus === STATUS.BUILD_DONE && this.options.dev) {\n return this\n }\n // If building\n /* istanbul ignore if */\n if (this._buildStatus === STATUS.BUILDING) {\n await waitFor(1000)\n return this.build()\n }\n this._buildStatus = STATUS.BUILDING\n\n consola.info({\n message: 'Building project',\n badge: true,\n clear: !this.options.dev\n })\n\n // Wait for nuxt ready\n await this.nuxt.ready()\n\n // Call before hook\n await this.nuxt.callHook('build:before', this, this.options.build)\n\n // Check if pages dir exists and warn if not\n this._nuxtPages = typeof this.options.build.createRoutes !== 'function'\n if (this._nuxtPages) {\n if (!fsExtra.existsSync(path.join(this.options.srcDir, this.options.dir.pages))) {\n const dir = this.options.srcDir\n if (fsExtra.existsSync(path.join(this.options.srcDir, '..', this.options.dir.pages))) {\n throw new Error(\n `No \\`${this.options.dir.pages}\\` directory found in ${dir}. Did you mean to run \\`nuxt\\` in the parent (\\`../\\`) directory?`\n )\n } else {\n this._defaultPage = true\n }\n }\n }\n\n consola.success('Builder initialized')\n\n consola.debug(`App root: ${this.options.srcDir}`)\n\n // Create .nuxt/, .nuxt/components and .nuxt/dist folders\n await fsExtra.remove(r(this.options.buildDir))\n const buildDirs = [r(this.options.buildDir, 'components')]\n if (!this.options.dev) {\n buildDirs.push(\n r(this.options.buildDir, 'dist', 'client'),\n r(this.options.buildDir, 'dist', 'server')\n )\n }\n await Promise.all(buildDirs.map(dir => fsExtra.mkdirp(dir)))\n\n // Generate routes and interpret the template files\n await this.generateRoutesAndFiles()\n\n // Start webpack build\n await this.webpackBuild()\n\n // Flag to set that building is done\n this._buildStatus = STATUS.BUILD_DONE\n\n // Call done hook\n await this.nuxt.callHook('build:done', this)\n\n return this\n }\n\n async generateRoutesAndFiles() {\n consola.debug(`Generating nuxt files`)\n\n this.plugins = this.normalizePlugins()\n\n // -- Templates --\n let templatesFiles = [\n 'App.js',\n 'client.js',\n 'index.js',\n 'middleware.js',\n 'router.js',\n 'server.js',\n 'utils.js',\n 'empty.js',\n 'components/nuxt-error.vue',\n 'components/nuxt-loading.vue',\n 'components/nuxt-child.js',\n 'components/nuxt-link.js',\n 'components/nuxt.js',\n 'components/no-ssr.js',\n 'views/app.template.html',\n 'views/error.html'\n ]\n const templateVars = {\n options: this.options,\n extensions: this.options.extensions\n .map(ext => ext.replace(/^\\./, ''))\n .join('|'),\n messages: this.options.messages,\n splitChunks: this.options.build.splitChunks,\n uniqBy: _.uniqBy,\n isDev: this.options.dev,\n debug: this.options.debug,\n vue: { config: this.options.vue.config },\n mode: this.options.mode,\n router: this.options.router,\n env: this.options.env,\n head: this.options.head,\n middleware: fsExtra.existsSync(path.join(this.options.srcDir, this.options.dir.middleware)),\n store: this.options.store,\n css: this.options.css,\n plugins: this.plugins,\n appPath: './App.js',\n ignorePrefix: this.options.ignorePrefix,\n layouts: Object.assign({}, this.options.layouts),\n loading:\n typeof this.options.loading === 'string'\n ? this.relativeToBuild(this.options.srcDir, this.options.loading)\n : this.options.loading,\n transition: this.options.transition,\n layoutTransition: this.options.layoutTransition,\n dir: this.options.dir,\n components: {\n ErrorPage: this.options.ErrorPage\n ? this.relativeToBuild(this.options.ErrorPage)\n : null\n }\n }\n\n // -- Layouts --\n if (fsExtra.existsSync(path.resolve(this.options.srcDir, this.options.dir.layouts))) {\n const layoutsFiles = await glob(`${this.options.dir.layouts}/**/*.{vue,js}`, {\n cwd: this.options.srcDir,\n ignore: this.options.ignore\n })\n layoutsFiles.forEach((file) => {\n const name = file\n .split('/')\n .slice(1)\n .join('/')\n .replace(/\\.(vue|js)$/, '')\n if (name === 'error') {\n if (!templateVars.components.ErrorPage) {\n templateVars.components.ErrorPage = this.relativeToBuild(\n this.options.srcDir,\n file\n )\n }\n return\n }\n if (!templateVars.layouts[name] || /\\.vue$/.test(file)) {\n templateVars.layouts[name] = this.relativeToBuild(\n this.options.srcDir,\n file\n )\n }\n })\n }\n // If no default layout, create its folder and add the default folder\n if (!templateVars.layouts.default) {\n await fsExtra.mkdirp(r(this.options.buildDir, 'layouts'))\n templatesFiles.push('layouts/default.vue')\n templateVars.layouts.default = './layouts/default.vue'\n }\n\n // -- Routes --\n consola.debug('Generating routes...')\n\n if (this._defaultPage) {\n templateVars.router.routes = createRoutes(\n ['index.vue'],\n this.options.nuxtAppDir + '/pages'\n )\n } else if (this._nuxtPages) { // If user defined a custom method to create routes\n // Use nuxt.js createRoutes bases on pages/\n const files = {}\n ;(await glob(`${this.options.dir.pages}/**/*.{vue,js}`, {\n cwd: this.options.srcDir,\n ignore: this.options.ignore\n })).forEach((f) => {\n const key = f.replace(/\\.(js|vue)$/, '')\n if (/\\.vue$/.test(f) || !files[key]) {\n files[key] = f.replace(/('|\")/g, '\\\\$1')\n }\n })\n templateVars.router.routes = createRoutes(\n Object.values(files),\n this.options.srcDir,\n this.options.dir.pages\n )\n } else {\n templateVars.router.routes = this.options.build.createRoutes(\n this.options.srcDir\n )\n }\n\n await this.nuxt.callHook(\n 'build:extendRoutes',\n templateVars.router.routes,\n r\n )\n\n // router.extendRoutes method\n if (typeof this.options.router.extendRoutes === 'function') {\n // let the user extend the routes\n const extendedRoutes = this.options.router.extendRoutes(\n templateVars.router.routes,\n r\n )\n // Only overwrite routes when something is returned for backwards compatibility\n if (extendedRoutes !== undefined) {\n templateVars.router.routes = extendedRoutes\n }\n }\n\n // Make routes accessible for other modules and webpack configs\n this.routes = templateVars.router.routes\n\n // -- Store --\n // Add store if needed\n if (this.options.store) {\n templatesFiles.push('store.js')\n }\n\n // Resolve template files\n const customTemplateFiles = this.options.build.templates.map(\n t => t.dst || path.basename(t.src || t)\n )\n\n templatesFiles = templatesFiles\n .map((file) => {\n // Skip if custom file was already provided in build.templates[]\n if (customTemplateFiles.indexOf(file) !== -1) {\n return\n }\n // Allow override templates using a file with same name in ${srcDir}/app\n const customPath = r(this.options.srcDir, 'app', file)\n const customFileExists = fsExtra.existsSync(customPath)\n\n return {\n src: customFileExists ? customPath : r(this.options.nuxtAppDir, file),\n dst: file,\n custom: customFileExists\n }\n })\n .filter(i => !!i)\n\n // -- Custom templates --\n // Add custom template files\n templatesFiles = templatesFiles.concat(\n this.options.build.templates.map((t) => {\n return Object.assign(\n {\n src: r(this.options.srcDir, t.src || t),\n dst: t.dst || path.basename(t.src || t),\n custom: true\n },\n t\n )\n })\n )\n\n // -- Loading indicator --\n if (this.options.loadingIndicator.name) {\n const indicatorPath1 = path.resolve(\n this.options.nuxtAppDir,\n 'views/loading',\n this.options.loadingIndicator.name + '.html'\n )\n const indicatorPath2 = this.nuxt.resolveAlias(\n this.options.loadingIndicator.name\n )\n const indicatorPath = fsExtra.existsSync(indicatorPath1)\n ? indicatorPath1\n : fsExtra.existsSync(indicatorPath2) ? indicatorPath2 : null\n if (indicatorPath) {\n templatesFiles.push({\n src: indicatorPath,\n dst: 'loading.html',\n options: this.options.loadingIndicator\n })\n } else {\n /* istanbul ignore next */\n // eslint-disable-next-line no-console\n console.error(\n `Could not fetch loading indicator: ${\n this.options.loadingIndicator.name\n }`\n )\n }\n }\n\n await this.nuxt.callHook('build:templates', {\n templatesFiles,\n templateVars,\n resolve: r\n })\n\n // Interpret and move template files to .nuxt/\n await Promise.all(\n templatesFiles.map(async ({ src, dst, options, custom }) => {\n // Add template to watchers\n this.options.build.watch.push(src)\n // Render template to dst\n const fileContent = await fsExtra.readFile(src, 'utf8')\n let content\n try {\n const template = _.template(fileContent, {\n imports: {\n serialize,\n hash,\n r,\n wp,\n wChunk,\n resolvePath: this.nuxt.resolvePath,\n resolveAlias: this.nuxt.resolveAlias,\n relativeToBuild: this.relativeToBuild\n },\n interpolate: /<%=([\\s\\S]+?)%>/g\n })\n content = template(\n Object.assign({}, templateVars, {\n options: options || {},\n custom,\n src,\n dst\n })\n )\n } catch (err) {\n /* istanbul ignore next */\n throw new Error(`Could not compile template ${src}: ${err.message}`)\n }\n const _path = r(this.options.buildDir, dst)\n // Ensure parent dir exits and write file\n await fsExtra.outputFile(_path, content, 'utf8')\n })\n )\n\n consola.success('Nuxt files generated')\n }\n\n async webpackBuild() {\n this.perfLoader = new PerfLoader(this.options)\n\n const compilersOptions = []\n\n // Client\n const clientConfig = new ClientWebpackConfig(this).config()\n compilersOptions.push(clientConfig)\n\n // Server\n let serverConfig = null\n if (this.options.build.ssr) {\n serverConfig = new ServerWebpackConfig(this).config()\n compilersOptions.push(serverConfig)\n }\n\n // Check plugins exist then set alias to their real path\n await Promise.all(this.plugins.map(async (p) => {\n const ext = path.extname(p.src) ? '' : '{.+([^.]),/index.+([^.])}'\n const pluginFiles = await glob(`${p.src}${ext}`)\n\n if (!pluginFiles || pluginFiles.length === 0) {\n throw new Error(`Plugin not found: ${p.src}`)\n } else if (pluginFiles.length > 1) {\n consola.warn({\n message: `Found ${pluginFiles.length} plugins that match the configuration, suggest to specify extension:`,\n additional: ` ${pluginFiles.join('\\n ')}`,\n badge: true\n })\n }\n\n const src = this.relativeToBuild(p.src)\n // Client config\n if (!clientConfig.resolve.alias[p.name]) {\n clientConfig.resolve.alias[p.name] = src\n }\n\n // Server config\n if (serverConfig && !serverConfig.resolve.alias[p.name]) {\n // Alias to noop for ssr:false plugins\n serverConfig.resolve.alias[p.name] = p.ssr ? src : './empty.js'\n }\n }))\n\n // Configure compilers\n this.compilers = compilersOptions.map((compilersOption) => {\n const compiler = webpack(compilersOption)\n\n // In dev, write files in memory FS\n if (this.options.dev) {\n compiler.outputFileSystem = this.mfs\n }\n\n return compiler\n })\n\n // Warmup perfLoader before build\n if (this.options.build.parallel) {\n consola.info('Warming up worker pools')\n this.perfLoader.warmupAll()\n consola.success('Worker pools ready')\n }\n\n // Start Builds\n const runner = this.options.dev ? parallel : sequence\n\n await runner(this.compilers, (compiler) => {\n return this.webpackCompile(compiler)\n })\n }\n\n webpackCompile(compiler) {\n return new Promise(async (resolve, reject) => {\n const name = compiler.options.name\n\n await this.nuxt.callHook('build:compile', { name, compiler })\n\n // Load renderer resources after build\n compiler.hooks.done.tap('load-resources', async (stats) => {\n await this.nuxt.callHook('build:compiled', {\n name,\n compiler,\n stats\n })\n\n // Reload renderer if available\n this.nuxt.renderer.loadResources(this.mfs || fs)\n\n // Resolve on next tick\n process.nextTick(resolve)\n })\n\n if (this.options.dev) {\n // --- Dev Build ---\n // Client Build, watch is started by dev-middleware\n if (compiler.options.name === 'client') {\n return this.webpackDev(compiler)\n }\n // Server, build and watch for changes\n this.compilersWatching.push(\n compiler.watch(this.options.watchers.webpack, (err) => {\n /* istanbul ignore if */\n if (err) return reject(err)\n })\n )\n } else {\n // --- Production Build ---\n compiler.run((err, stats) => {\n /* istanbul ignore next */\n if (err) {\n return reject(err)\n } else if (stats.hasErrors()) {\n if (this.options.build.quiet === true) {\n err = stats.toString(this.options.build.stats)\n }\n if (!err) {\n // actual errors will be printed by webpack itself\n err = 'Nuxt Build Error'\n }\n\n return reject(err)\n }\n\n resolve()\n })\n }\n })\n }\n\n webpackDev(compiler) {\n consola.debug('Adding webpack middleware...')\n\n // Create webpack dev middleware\n this.webpackDevMiddleware = pify(\n webpackDevMiddleware(\n compiler,\n Object.assign(\n {\n publicPath: this.options.build.publicPath,\n stats: false,\n logLevel: 'silent',\n watchOptions: this.options.watchers.webpack\n },\n this.options.build.devMiddleware\n )\n )\n )\n\n this.webpackDevMiddleware.close = pify(this.webpackDevMiddleware.close)\n\n this.webpackHotMiddleware = pify(\n webpackHotMiddleware(\n compiler,\n Object.assign(\n {\n log: false,\n heartbeat: 10000\n },\n this.options.build.hotMiddleware\n )\n )\n )\n\n // Inject to renderer instance\n if (this.nuxt.renderer) {\n this.nuxt.renderer.webpackDevMiddleware = this.webpackDevMiddleware\n this.nuxt.renderer.webpackHotMiddleware = this.webpackHotMiddleware\n }\n\n // Start watching client files\n this.watchClient()\n }\n\n watchClient() {\n const src = this.options.srcDir\n let patterns = [\n r(src, this.options.dir.layouts),\n r(src, this.options.dir.store),\n r(src, this.options.dir.middleware),\n r(src, `${this.options.dir.layouts}/*.{vue,js}`),\n r(src, `${this.options.dir.layouts}/**/*.{vue,js}`)\n ]\n if (this._nuxtPages) {\n patterns.push(\n r(src, this.options.dir.pages),\n r(src, `${this.options.dir.pages}/*.{vue,js}`),\n r(src, `${this.options.dir.pages}/**/*.{vue,js}`)\n )\n }\n patterns = _.map(patterns, upath.normalizeSafe)\n\n const options = this.options.watchers.chokidar\n /* istanbul ignore next */\n const refreshFiles = _.debounce(() => this.generateRoutesAndFiles(), 200)\n\n // Watch for src Files\n this.watchers.files = chokidar\n .watch(patterns, options)\n .on('add', refreshFiles)\n .on('unlink', refreshFiles)\n\n // Watch for custom provided files\n let customPatterns = _.concat(\n this.options.build.watch,\n ..._.values(_.omit(this.options.build.styleResources, ['options']))\n )\n customPatterns = _.map(_.uniq(customPatterns), upath.normalizeSafe)\n this.watchers.custom = chokidar\n .watch(customPatterns, options)\n .on('change', refreshFiles)\n }\n\n watchServer() {\n const nuxtRestartWatch = _.concat(\n this.options.serverMiddleware\n .filter(i => typeof i === 'string')\n .map(this.nuxt.resolveAlias),\n this.options.watch.map(this.nuxt.resolveAlias),\n path.join(this.options.rootDir, 'nuxt.config.js')\n )\n\n this.watchers.restart = chokidar\n .watch(nuxtRestartWatch, this.options.watchers.chokidar)\n .on('change', (_path) => {\n this.watchers.restart.close()\n const { name, ext } = path.parse(_path)\n this.nuxt.callHook('watch:fileChanged', this, `${name}${ext}`)\n })\n }\n\n async unwatch() {\n for (const watcher in this.watchers) {\n if (this.watchers[watcher]) {\n this.watchers[watcher].close()\n }\n }\n\n this.compilersWatching.forEach(watching => watching.close())\n\n // Stop webpack middleware\n if (this.webpackDevMiddleware) {\n await this.webpackDevMiddleware.close()\n }\n }\n\n // TODO: remove ignore when generateConfig enabled again\n async generateConfig() /* istanbul ignore next */ {\n const config = path.resolve(this.options.buildDir, 'build.config.js')\n const options = _.omit(this.options, Options.unsafeKeys)\n await fsExtra.writeFile(\n config,\n `export default ${JSON.stringify(options, null, ' ')}`,\n 'utf8'\n )\n }\n}\n\nconst STATUS = {\n INITIAL: 1,\n BUILD_DONE: 2,\n BUILDING: 3\n}\n","import path from 'path'\nimport _ from 'lodash'\nimport htmlMinifier from 'html-minifier'\nimport Chalk from 'chalk'\nimport fsExtra from 'fs-extra'\nimport consola from 'consola'\nimport { isUrl, promisifyRoute, waitFor, flatRoutes } from '../common/utils'\n\nexport default class Generator {\n constructor(nuxt, builder) {\n this.nuxt = nuxt\n this.options = nuxt.options\n this.builder = builder\n\n // Set variables\n this.staticRoutes = path.resolve(this.options.srcDir, this.options.dir.static)\n this.srcBuiltPath = path.resolve(this.options.buildDir, 'dist', 'client')\n this.distPath = this.options.generate.dir\n this.distNuxtPath = path.join(\n this.distPath,\n isUrl(this.options.build.publicPath) ? '' : this.options.build.publicPath\n )\n }\n\n async generate({ build = true, init = true } = {}) {\n consola.debug('Initializing generator...')\n\n await this.initiate({ build, init })\n\n consola.debug('Preparing routes for generate...')\n\n const routes = await this.initRoutes()\n\n consola.info({\n message: 'Generating pages',\n badge: true,\n clear: true\n })\n\n const errors = await this.generateRoutes(routes)\n\n await this.afterGenerate()\n\n // Done hook\n await this.nuxt.callHook('generate:done', this, errors)\n\n return { errors }\n }\n\n async initiate({ build = true, init = true } = {}) {\n // Wait for nuxt be ready\n await this.nuxt.ready()\n\n // Call before hook\n await this.nuxt.callHook('generate:before', this, this.options.generate)\n\n if (build) {\n // Add flag to set process.static\n this.builder.forGenerate()\n\n // Start build process\n await this.builder.build()\n }\n\n // Initialize dist directory\n if (init) {\n await this.initDist()\n }\n }\n\n async initRoutes(...args) {\n // Resolve config.generate.routes promises before generating the routes\n let generateRoutes = []\n if (this.options.router.mode !== 'hash') {\n try {\n generateRoutes = await promisifyRoute(\n this.options.generate.routes || [],\n ...args\n )\n } catch (e) {\n consola.error('Could not resolve routes')\n throw e // eslint-disable-line no-unreachable\n }\n }\n // Generate only index.html for router.mode = 'hash'\n let routes =\n this.options.router.mode === 'hash'\n ? ['/']\n : flatRoutes(this.options.router.routes)\n routes = this.decorateWithPayloads(routes, generateRoutes)\n\n // extendRoutes hook\n await this.nuxt.callHook('generate:extendRoutes', routes)\n\n return routes\n }\n\n async generateRoutes(routes) {\n const errors = []\n\n // Start generate process\n while (routes.length) {\n let n = 0\n await Promise.all(\n routes\n .splice(0, this.options.generate.concurrency)\n .map(async ({ route, payload }) => {\n await waitFor(n++ * this.options.generate.interval)\n await this.generateRoute({ route, payload, errors })\n })\n )\n }\n\n // Improve string representation for errors\n errors.toString = () => this._formatErrors(errors)\n\n return errors\n }\n\n _formatErrors(errors) {\n return errors\n .map(({ type, route, error }) => {\n const isHandled = type === 'handled'\n const bgColor = isHandled ? 'bgYellow' : 'bgRed'\n const color = isHandled ? 'yellow' : 'red'\n\n let line =\n Chalk.black[bgColor](' GEN ERR ') + Chalk[color](` ${route}\\n\\n`)\n\n if (isHandled) {\n line += Chalk.grey(JSON.stringify(error, undefined, 2) + '\\n')\n } else {\n line += Chalk.grey(error.stack)\n }\n\n return line\n })\n .join('\\n')\n }\n\n async afterGenerate() {\n const { fallback } = this.options.generate\n\n // Disable SPA fallback if value isn't a non-empty string\n if (typeof fallback !== 'string' || !fallback) return\n\n const fallbackPath = path.join(this.distPath, fallback)\n\n // Prevent conflicts\n if (fsExtra.existsSync(fallbackPath)) {\n consola.warn(`SPA fallback was configured, but the configured path (${fallbackPath}) already exists.`)\n return\n }\n\n // Render and write the SPA template to the fallback path\n const { html } = await this.nuxt.renderRoute('/', { spa: true })\n await fsExtra.writeFile(fallbackPath, html, 'utf8')\n }\n\n async initDist() {\n // Clean destination folder\n await fsExtra.remove(this.distPath)\n\n await this.nuxt.callHook('generate:distRemoved', this)\n\n // Copy static and built files\n /* istanbul ignore if */\n if (fsExtra.existsSync(this.staticRoutes)) {\n await fsExtra.copy(this.staticRoutes, this.distPath)\n }\n await fsExtra.copy(this.srcBuiltPath, this.distNuxtPath)\n\n // Add .nojekyll file to let GitHub Pages add the _nuxt/ folder\n // https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/\n const nojekyllPath = path.resolve(this.distPath, '.nojekyll')\n fsExtra.writeFile(nojekyllPath, '')\n\n await this.nuxt.callHook('generate:distCopied', this)\n }\n\n decorateWithPayloads(routes, generateRoutes) {\n const routeMap = {}\n // Fill routeMap for known routes\n routes.forEach((route) => {\n routeMap[route] = { route, payload: null }\n })\n // Fill routeMap with given generate.routes\n generateRoutes.forEach((route) => {\n // route is either a string or like { route : '/my_route/1', payload: {} }\n const path = _.isString(route) ? route : route.route\n routeMap[path] = {\n route: path,\n payload: route.payload || null\n }\n })\n return _.values(routeMap)\n }\n\n async generateRoute({ route, payload = {}, errors = [] }) {\n let html\n const pageErrors = []\n\n try {\n const res = await this.nuxt.renderer.renderRoute(route, {\n _generate: true,\n payload\n })\n html = res.html\n if (res.error) {\n pageErrors.push({ type: 'handled', route, error: res.error })\n }\n } catch (err) {\n /* istanbul ignore next */\n pageErrors.push({ type: 'unhandled', route, error: err })\n Array.prototype.push.apply(errors, pageErrors)\n\n await this.nuxt.callHook('generate:routeFailed', {\n route,\n errors: pageErrors\n })\n consola.error(this._formatErrors(pageErrors))\n\n return false\n }\n\n if (this.options.generate.minify) {\n try {\n html = htmlMinifier.minify(html, this.options.generate.minify)\n } catch (err) /* istanbul ignore next */ {\n const minifyErr = new Error(\n `HTML minification failed. Make sure the route generates valid HTML. Failed HTML:\\n ${html}`\n )\n pageErrors.push({ type: 'unhandled', route, error: minifyErr })\n }\n }\n\n let _path\n\n if (this.options.generate.subFolders) {\n _path = path.join(route, path.sep, 'index.html') // /about -> /about/index.html\n _path = _path === '/404/index.html' ? '/404.html' : _path // /404 -> /404.html\n } else {\n _path = route.length > 1 ? path.join(path.sep, route + '.html') : path.join(path.sep, 'index.html')\n }\n\n // Call hook to let user update the path & html\n const page = { route, path: _path, html }\n await this.nuxt.callHook('generate:page', page)\n\n page.path = path.join(this.distPath, page.path)\n\n // Make sure the sub folders are created\n await fsExtra.mkdirp(path.dirname(page.path))\n await fsExtra.writeFile(page.path, page.html, 'utf8')\n\n await this.nuxt.callHook('generate:routeCreated', {\n route,\n path: page.path,\n errors: pageErrors\n })\n\n if (pageErrors.length) {\n consola.error('Error generating ' + route)\n Array.prototype.push.apply(errors, pageErrors)\n } else {\n consola.success('Generated ' + route)\n }\n\n return true\n }\n}\n","import Builder from './builder'\nimport Generator from './generator'\n\nexport default {\n Builder,\n Generator\n}\n","import core from './core'\nimport builder from './builder'\nimport * as Utils from './common/utils'\nimport Options from './common/options'\n\nexport default Object.assign({ Utils, Options }, core, builder)\n"],"names":["_","path","createRenderer","fs","createBundleRenderer","hash","name","chalk","join","resolve","Module","warmup","uniq","env","BaseConfig","ClientWebpackConfig","ServerWebpackConfig"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,UAAU,GAAG,SAAS,UAAU,CAAC,GAAG,EAAE;EACjD,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;EACvD;;AAED,MAAa,UAAU,GAAG,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE;EACtD,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE;EACpB;;AAEM,MAAM,OAAO,GAAG,SAAS,OAAO,CAAC,EAAE,EAAE;EAC1C,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;EAC5D;;AAED,eAAe,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE;EACzC,IAAI,OAAM;EACV,IAAI;IACF,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE;MAC5B,MAAM,GAAG,MAAM,EAAE,GAAE;KACpB,MAAM;MACL,MAAM,GAAG,MAAM,GAAE;KAClB;GACF,SAAS;IACR,OAAO,GAAE;GACV;EACD,OAAO,MAAM;CACd;;AAED,MAAa,OAAO,GAAG,SAAS,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE;EACnD,IAAI,QAAO;EACX,MAAM,WAAW,GAAG,cAAc,CAAC,EAAE,EAAE,MAAM,YAAY,CAAC,OAAO,CAAC,EAAC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