Skip to content
Permalink
Browse files

update nuxtjs output directory (#463)

  • Loading branch information...
msweeneydev committed Aug 7, 2019
1 parent 99c7cd6 commit ad306ba67f427b98ce54745985c0a939b7433265
Showing with 30 additions and 30 deletions.
  1. +1 −1 nuxtjs/README.md
  2. +28 −28 nuxtjs/nuxt.config.js
  3. +1 −1 nuxtjs/package.json
@@ -10,7 +10,7 @@ To get started with Nuxt.js on Now, you can use the [Create-Nuxt-App CLI](https:
$ npx create-nuxt-app my-app
```

> The only change made is to amend the build script in `package.json` to `"nuxt generate && mv dist public"`.
> The only change made is to amend the output directory in `nuxt.config.js` to `"/public"`.
## Deploying this Example

@@ -1,47 +1,47 @@

export default {
mode: 'spa',
/*
** Headers of the page
*/
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
{
hid: 'description',
name: 'description',
content: process.env.npm_package_description || ''
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},
/*
** Customize the progress-bar color
*/
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
],
** Global CSS
*/
css: [],
/*
** Plugins to load before mounting the App
*/
plugins: [
],
** Plugins to load before mounting the App
*/
plugins: [],
/*
** Nuxt.js modules
*/
modules: [
],
** Nuxt.js modules
*/
modules: [],
/*
** Build configuration
*/
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
}
** You can extend webpack config here
*/
extend(config, ctx) {}
},
generate: {
dir: 'public'
}
}
};
@@ -6,7 +6,7 @@
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt generate && mv dist public",
"build": "nuxt generate",
"start": "nuxt start"
},
"dependencies": {

1 comment on commit ad306ba

@now

This comment has been minimized.

Copy link

commented on ad306ba Aug 7, 2019

Please sign in to comment.
You can’t perform that action at this time.