Skip to content

Navigation Menu

Sign in
Sign up

Ragu Server: Config File

Maniero edited this page Sep 14, 2020 · 3 revisions

config.components.namePrefix: string required

The name prefix is used as namespace of your components. It prevents component name collision across multiple ragu-servers.

config.components.sourceRoot: string required

The path where your components live.

config.server.routes.assets: string required

The route where the server should expose the generated static files. ie: /component-assets/

config.server.routes.components: string

The route where the server should expose your components. default: /components/

config.server.routes.preview: string

The route where the server should expose your components preview. default: /preview/

config.server.previewEnabled: boolean

Should the server expose the preview endpoint? default: false

config.server.hideWelcomeMessage: boolean

Hides the welcome message when the server starts. default: false

config.server.logging.level: LogLevel (number)

The min level of log. default: 0

Choices: DEBUG=0, INFO=1, WARN=2, ERROR=3

config.server.logging.logger: Logger

Define a custom log. (The config.server.logging.level will have no effect when this field is defined).

config.server.logging.port: number

Application server port.

compiler.watchMode: boolean

Watch for component changes to recompile.

compiler.assetsPrefix: string

The URL prefix of your components. ie: http://localhost:3101/component-assets/

compiler.output.view: string

The path from your server-side components part, compiled to node. ie: path.join(__dirname, 'compiled/view_components')

compiler.output.hydrate: string

The path from your components compiled to node. ie: path.join(__dirname, 'compiled/hydrate_components')

compiler.webpack.view: webpack.Configuration

A custom webpack configuration to compile your components to a node environment.

compiler.webpack.hydrate: webpack.Configuration

A custom webpack configuration to compile your components to a browser environment.

Clone this wiki locally

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /