mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-17 10:55:48 +00:00
Fix CDNs (#1142)
* Rename browser build output file to ripple-latest-min.js (the name prior to #1061) * Add unpkg and jsdelivr
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
"build/ripple-latest-min.js"
|
"build/ripple-latest-min.js"
|
||||||
],
|
],
|
||||||
"main": "dist/npm/",
|
"main": "dist/npm/",
|
||||||
|
"unpkg": "build/ripple-latest-min.js",
|
||||||
|
"jsdelivr": "build/ripple-latest-min.js",
|
||||||
"types": "dist/npm/index.d.ts",
|
"types": "dist/npm/index.d.ts",
|
||||||
"browser": {
|
"browser": {
|
||||||
"ws": "./dist/npm/common/wswrapper.js",
|
"ws": "./dist/npm/common/wswrapper.js",
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ module.exports = [
|
|||||||
function(env, argv) {
|
function(env, argv) {
|
||||||
const config = getDefaultConfiguration();
|
const config = getDefaultConfiguration();
|
||||||
config.mode = 'production';
|
config.mode = 'production';
|
||||||
config.output.filename = `ripple-latest.min.js`;
|
config.output.filename = `ripple-latest-min.js`;
|
||||||
if (process.argv.includes('--analyze')) {
|
if (process.argv.includes('--analyze')) {
|
||||||
config.plugins.push(new BundleAnalyzerPlugin());
|
config.plugins.push(new BundleAnalyzerPlugin());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user