mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
commit
61595c61f8
@ -63,7 +63,7 @@ const Nuxt = require('nuxt')
|
|||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
routes: [], // see examples/custom-routes
|
routes: [], // see examples/custom-routes
|
||||||
css: ['/dist/boostrap.css'] // see examples/global-css
|
css: ['/dist/bootstrap.css'] // see examples/global-css
|
||||||
store: true // see examples/vuex-store
|
store: true // see examples/vuex-store
|
||||||
plugins: ['public/plugin.js'], // see examples/plugins-vendor
|
plugins: ['public/plugin.js'], // see examples/plugins-vendor
|
||||||
loading: false or { color: 'blue', failedColor: 'red' } or 'components/my-spinner' // see examples/custom-loading
|
loading: false or { color: 'blue', failedColor: 'red' } or 'components/my-spinner' // see examples/custom-loading
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
In `nuxt.config.js` file, add the CSS ressources:
|
In `nuxt.config.js` file, add the CSS resources:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { resolve } = require('path')
|
const { resolve } = require('path')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Using external modules and plugings with nuxt.js
|
# Using external modules and plugins with nuxt.js
|
||||||
|
|
||||||
## Configuration: `build.vendor`
|
## Configuration: `build.vendor`
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ if (process.BROWSER) {
|
|||||||
|
|
||||||
// Binding for methods .success(), .error() and etc. You can specify and map your own methods here.
|
// Binding for methods .success(), .error() and etc. You can specify and map your own methods here.
|
||||||
// Required to pipe our outout to UI library (mini-toastr in example here)
|
// Required to pipe our outout to UI library (mini-toastr in example here)
|
||||||
// All not-specifyed events (types) would be piped to output in console.
|
// All not-specified events (types) would be piped to output in console.
|
||||||
const options = {
|
const options = {
|
||||||
success: toast,
|
success: toast,
|
||||||
error: toast,
|
error: toast,
|
||||||
|
@ -58,7 +58,7 @@ export default context => {
|
|||||||
<% } %>
|
<% } %>
|
||||||
return promise
|
return promise
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// Call data & fecth hooks on components matched by the route.
|
// Call data & fetch hooks on components matched by the route.
|
||||||
return Promise.all(Components.map((Component) => {
|
return Promise.all(Components.map((Component) => {
|
||||||
let promises = []
|
let promises = []
|
||||||
if (!Component.options) {
|
if (!Component.options) {
|
||||||
|
@ -8,7 +8,7 @@ const { urlJoin } = require('../../utils')
|
|||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Webpack Shared Config
|
| Webpack Shared Config
|
||||||
|
|
|
|
||||||
| This is the config which is extented by the server and client
|
| This is the config which is extended by the server and client
|
||||||
| webpack config files
|
| webpack config files
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user