0.1.5 • Published 8 years ago

webpack-plugin-acid v0.1.5

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

webpack-plugin-acid

webpack-plugin-acid lets you add your Acid static site to your Webpack build. This lets you automatically watch your templates and build your static site along with the rest of your assets.

It should be noted that this plugin simply adds the compiled HTML of your site to your Webpack output and does not actually pass the assets through your pipeline.

Usage

Just add the plugin to your webpack.config.js:

var AcidPlugin = require('webpack-plugin-acid');
module.exports = {
    entry: {...},
    output: {...},
    module: {...},
    plugins: [
        new AcidPlugin()
    ]
}

Options

webpack-plugin-acid accepts the following options as an object:

new AcidPlugin({
    config: {},
    watchPath: '...'
})
  • config (object, optional) - Causes the Acid instance to be initiated with the passed configuration object rather than loading it from acid.config.js.
  • watchPath (string, optional) - Choose the directory to watch for changes to *.marko files. By default, this will watch for any templates in the entire project (excluding node_modules).

Acknowledgements

This plugin was heavily inspired by (and shamelessly stole code from) static-site-generator-webpack-plugin.

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago