VueJS: Cấu hình
Giải phóng thời gian, khai phóng năng lực
By default, Nuxt.js is configured to cover most use cases. This default config can be overwritten by nuxt.config.js file.
build
This option accept you to config other sets for build steps, including loaders, filenames by webpack config and transpilation.
Document about build integration
css
This option allows you to define files, modules and CSS libraries that you want to take them to global (on every page).
Document about css integration
dev
This option allows you to define the development or production mode of Nuxt.js (important when you use Nuxt.js with programming)
Document about dev integration
env
This option allows you to define exist enviroment variables for client-side and server-side.
Document about env integration
generate
This option allows you setup parameter values for every dynamic routes in your application will be transformed to HTML file by Nuxt.js.
Document about generate integration
head
This option allows you to define all of default meta tags for your application.
Document about head integrated
loading
This option allows you to custom loading component that Nuxt.js using by default.
Document about loading integrated
modules
With this option, you can add Nuxt.js modules in your project.
Document about modules integrated
modulesDir
This option allows you to define node_modules directory of your Nuxt.js application.
Document about modulesDir integrated
plugins
This option allows you to define JavaScript plugins should running before init root Vue.js app.
Document about plugins integrated
rootDir
This option allows you to define your workspace of Nuxt.js app.
Document about rootDir integrated
router
With the router option you can overwrite default Nuxt.js config of Vue Router.
Document about router integrated
server
Tùy chọn này cho phép bạn định cấu hình các biến kết nối cho phiên bản máy chủ của ứng dụng Nuxt.js của bạn.
srcDir
Tùy chọn này cho phép bạn xác định thư mục nguồn của ứng dụng Nuxt.js của bạn.
dir
Tùy chọn này cho phép bạn xác định các thư mục tùy chỉnh của ứng dụng Nuxt.js của bạn.
transition
Tùy chọn này cho phép bạn xác định các thuộc tính mặc định của các chuyển đổi trang.
Giải phóng thời gian, khai phóng năng lực