第一地球人低头想了想,说:“这样吧,我给你讲讲第一地球上穷人和富人的故事。”
“我很想听。”滑膛把枪插回怀里的枪套中。
Command | Description |
---|---|
vite |
Start dev server with HMR, aliases: vite dev , vite serve . |
vite build |
Build for production, files are output to ./dist . |
vite preview |
Locally preview production build, start a local web server serving built app from ./dist . |
Dev server runs dev
(default) in development
mode and runs build
in production
mode, which means dev
reads variables from .env.dev
and build
reads variables from .env.production
.
Example:
1 | VITE_APP_TITLE=My App |
In the app, render title with import.meta.env.VITE_APP_TITLE
.
When running vite from the command line, Vite will automatically try to resolve a config file named vite.config.js
inside project root.
1 | // vite.config.js |
If config needs to conditionally determine options based on the mode, or if it is an SSR build (ssrBuild), export a function instead:
1 | export default defineConfig( ({command, mode, ssrBuild}) => { |
谁让你读了这么多书,又知道了双水村以外还有个大世界……如果从小你就在这个天地里日出而作,日落而息,那你现在就会和众乡亲抱同一理想:经过几年的辛劳,像大哥一样娶个满意的媳妇,生个胖儿子,加上你的体魄,会成为一名出色的庄稼人。不幸的是,你知道的太多了,思考的太多了,因此才有了这种不能为周围人所理解的苦恼。 - 《平凡的世界》