在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pearofducks/rollup-plugin-dev开源软件地址:https://github.com/pearofducks/rollup-plugin-dev开源编程语言:JavaScript 99.9%开源软件介绍:rollup-plugin-deva development server for rollup why this plugin?compared to other plugins, this plugin:
installnpm install --save-dev rollup-plugin-dev pnpm add --save-dev rollup-plugin-dev useimport dev from 'rollup-plugin-dev'
export default {
plugins: [
dev()
]
} optionsdirsdirectories to serve static files from example: when no other options are needed, a shortcut is available to specify one folder basePathprefix all served files with a base path - e.g. serve from example: silentwill silence all log messages, as well as the warning printed when rollup is started outside of watch mode example: proxyproxy a path to an upstream service example:
spaserve a fallback page (for single-page apps) example: if a path is provided, it should be relative to one of the the fallback file must reside in one of the portthe port the server should listen on example: the server will automatically listen on the first available port after 8080 if the specified/default port is taken hostthe host the server should listen on example: forceforce the server to start, even if rollup isn't in watch mode example: dirnamethe path to resolve any relative example: this is generally not needed if one is running Rollup from package.json's servermodify options the Fastify server is booted with - accepts any valid Fastify server attribute example: here be dragons - because modifying these options can wildly change server behavior, this is supported on an 'as is' basis only extendenables full customization of the dev server, expects a Fastify plugin example: onListenthis is a callback that runs after the server has started example: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论