massimo projects can be configured through a
config.rb file located in the root of your project or by using command line options. The config file will automatically detected when you run massimo commands.
config.rb file, you have access to all of the site's methods. For example:
This config file does a few things:
- It changes the output path to
- It sets options for Uglifier.
- It uses CSSMin for stylesheets compression during production mode.
- It creates a custom resource.
- It creates a custom helper method to access the custom resources.
if config.environment.production? block. This changes the configuration based on the environment setup in the command line.
|source_path||The path to the source files of the project. This can be changed on the command line using the
|output_path||The path to output the site to. This can be changed on the command line using the
|environment||A string representing the Site's environment. This can be changed on the command line using the
|base_url||The base url of this site. You would change this if the site existed in a subdirectory. Defaults to
|[resource]_path||The path to where the given resources files are located. Defaults to the name of the resource. For example,
|[resource]_url||The base url for the given resources. Defaults to
|compress||When set to |
|compress_js||When set to
|js_compressor||Which javasript compressor to use. Available options are
|compress_css||When set to
|css_compressor||Which css compressor to use. Available options are
|css_compressor_options||Sets options for the css compression library to use.|
|[template_extension]||Sets options for the Tilt::Template registered for that extension to use. For example, if you want to use some default options for Markdown templates: