
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
voog-webpack-plugin
Advanced tools
Develop, build and deploy your Voog application locally with WebPack - https://voog.com
This plugin uses Voog API to deploy layouts and assets to Voog.
ℹ️ Usable with
webpack@4
Voog custom layouts and code editor is a good way to get your designs up and running fast, but once your site grows then the simplicity creates some limitations in how the project is structured, what kind of optimization tools are available and how to continue developing the design.
With WebPack and VoogWebpackPlugin you can overcome some of these limitations. For example you could add
... or implement any webpack plugin.
To begin, you'll need to install voog-webpack-plugin:
$ npm install voog-webpack-plugin --save-dev
Then add the plugin to your webpack config. For example:
webpack.config.js
const VoogWebpackPlugin = require('voog-webpack-plugin');
module.exports = {
plugins: [
new VoogWebpackPlugin({
voogApiHost: 'YOUR_VOOG_API_HOST',
voogApiToken: 'YOUR_VOOG_API_TOKEN'
})
],
};
And run webpack via your preferred method.
The best way to get started is look at the example-project in the same github repository.
filename-layout.tpl and
components filename-component.tpl. The plugin will know
how to separate these from the file name extensions.ℹ️ All files without
-layout.tplor-component.tplextension will be ignored.
When you start webpack builder then the plugin will download a list of all the files in your Voog server and keeps it in memory. If you have changed a file in your local editor then the plugin will check if the contents is different then what was downloaded from Voog and upload a new version. This will make sure that only the files that have changed are uploaded.
Everything in your webpack build folder will be uploaded to your Voog server. Including layouts, components, images, stylesheets, javascript files, fonts.
1. I'm experiencing slow build speed with larger projects
This is caused by html-webpack-plugin that handles generation of HTML files. The plugin is generating files synchronously and this makes things slow when you have a lot of template files.
HtmlWebpackPlugin version 4 should fix this issue, but it's still in beta.
2. I'm getting ["invalid syntax","Syntax error (line 100): Tag '{%=\"\" unless=\"\" editmode=\"\" %}' was not properly terminated with regexp: /\\%\\}/"] (or similar) exception`
You have probably used Voog specific tags in HTML element attributes. In some cases Voog markup conflicts with HtmlWebpackPlugin.
This is not allowed: <div {% unless editmode %}class="active"{% endunless%}>Voog is fun</div>. Instead use if/else
statement for the full element
{% if editmode %}
<div>Voog is fun</div>
{% else %}
<div class="active">Voog is fun</div>
{% endif %}
An alternative would be to assign class to Voog variable and use it inside the element attribute:
{% if editmode %}
{% assign cssClass = 'active' %}
{% else %}
{% assign cssClass = 'not-active' %}
{% endif %}
<div class="{{ cssClass }}}">Voog is fun</div>
Messente - Send SMS messages and PIN codes in over 190 countries
FAQs
Develop, build and deploy your Voog application locally with WebPack - https://voog.com
The npm package voog-webpack-plugin receives a total of 7 weekly downloads. As such, voog-webpack-plugin popularity was classified as not popular.
We found that voog-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.