quantum.config.js
.
This file contains the pipeline definition as well as config for which files to build. html
elements (such as <div>
) can be seen below: const html = require('quantum-html')
module.exports = {
port: 9999,
pipeline: [
html.fileTransform()
],
pages: '**/*.um'
}
quantum.config.js
, you can just run this in the same directory as the config file: # Build the site once
quantum build
# OR
# Build the site and watch for changes
quantum watch
--config
option can be used when building a quantum site: quantum --config="quantum.config.production.js" build
# OR
quantum --config="quantum.config.production.js" watch
require
the config file in your script: const config = require('./quantum.config.js')
const quantum = require('quantum-core')
// Build the site once
quantum.api.build(config)
// OR
// Build the site and watch for changes
quantum.api.watch(config)