{"id":18331326,"url":"https://github.com/coveooss/visualforce-html-webpack-plugin","last_synced_at":"2025-04-06T02:31:04.441Z","repository":{"id":23773367,"uuid":"99816873","full_name":"coveooss/visualforce-html-webpack-plugin","owner":"coveooss","description":"A Webpack plugin to generate HTML file from Salesforce Visualforce page","archived":false,"fork":false,"pushed_at":"2024-06-28T14:32:20.000Z","size":319,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-28T15:03:13.116Z","etag":null,"topics":["salesforce","salesforce-visualforce-page","visualforce-page","webpack-plugin"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coveooss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-09T14:21:00.000Z","updated_at":"2023-04-13T21:42:49.000Z","dependencies_parsed_at":"2023-12-06T21:23:27.270Z","dependency_job_id":"64f56876-23f8-4ec6-9825-3e4cc12e5061","html_url":"https://github.com/coveooss/visualforce-html-webpack-plugin","commit_stats":null,"previous_names":["coveo/visualforce-html-webpack-plugin"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coveooss%2Fvisualforce-html-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coveooss%2Fvisualforce-html-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coveooss%2Fvisualforce-html-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coveooss%2Fvisualforce-html-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coveooss","download_url":"https://codeload.github.com/coveooss/visualforce-html-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223232728,"owners_count":17110507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["salesforce","salesforce-visualforce-page","visualforce-page","webpack-plugin"],"created_at":"2024-11-05T19:30:17.456Z","updated_at":"2025-04-06T02:31:04.420Z","avatar_url":"https://github.com/coveooss.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visualforce Webpack Plugin [![Build Status](https://travis-ci.org/coveo/visualforce-html-webpack-plugin.svg?branch=master)](https://travis-ci.org/coveo/visualforce-html-webpack-plugin)\n\nA Webpack plugin to generate HTML file from Salesforce Visualforce pages. This is especially usefull to locally develop Visualforce pages without having to deploy to Salesforce.\n\n# Installation\nInstall the plugin with npm:\n```\nnpm install --save-dev visualforce-html-webpack-plugin\n```\n\n# Basic usage\nThe plugin will generate an HTML file for you for each Visualforce pages present in your workspace.\nJust add the plugin to your webpack config as follows:\n```javascript\nvar VisualforceHtmlPlugin = require('visualforce-html-webpack-plugin');\nvar webpackConfig = {\n  entry: 'index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'index_bundle.js'\n  },\n  plugins: [new VisualforceHtmlPlugin(/* config */)]\n};\n```\n\n# Configuration\nSince Visualforce pages can have multiple references to your Salesforce organization, it is possible to \"mock\" most of them using the VisualforceHtmlPlugin configuration file\n\n```javascript\nvar config = {\n  SalesforceContext: {\n    CustomModifiers: {\n      '\u003cMyNameSpace:MyComponent.*?\u003e\u003c/MyNameSpace:MyComponent\u003e': \n      `\u003cscript  src=\"myscripts/mystuff.js\"\u003e\u003c/script\u003e\n      \u003clink rel=\"stylesheet\" href=\"mycss/mystuff.css\"/\u003e`\n    },\n    Resources: {\n      jquery: \"jquery/dist/\"\n    },\n    Controllers: {\n      MyController: {\n        foo: \"bar\",\n        fooFile: { file: \"bar.json\" }\n      }\n    }\n  }\n};\n```\n\nThis configuration will resolve `$Resource.jquery` and `{!foo}` in your pages allowing you to use the same `\u003capex:stylesheet\u003e` and `\u003capex:includeScript\u003e` imports you would in Salesforce.\n\nThe CustomModifiers option allow to specify a regex to match a resource in your Visualforce page, and the content with which to replace it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoveooss%2Fvisualforce-html-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoveooss%2Fvisualforce-html-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoveooss%2Fvisualforce-html-webpack-plugin/lists"}