webpack-salesforce-plugin
A small configurable plugin that can zip and deploy bundle files to Salesforce as static resources.
Installation
npm install webpack-salesforce-plugin
Configuration
Modify your webpack.config.js
as follows:
var WebpackSalesforcePlugin = ; moduleexports = ... plugins: options ...;
Options
This plugin supports configuration through the passed in arguments. The options
paramater has the structure:
salesforce: username: 'username' // the username to log in to Salesforce with password: 'password' // the users password token: '' // the security token, if needed. May be null or empty string if not required. Default ''. loginUrl: 'https://login.salesforce.com' // the url to log in to salesforce with. Generally one of https://test.salesforce.com or https://login.salesforce.com. Default 'https://login.salesforce.com'. resources: name: 'resource1' //the name of the static resource to be created/updated in Salesforce files: 'dist/bundle1.js' 'dist/**/*.bundle.js' // the files to include in the static resource folder, may be in glob format