build: improve no-compat webpack build.

This commit is contained in:
Christopher Jeffrey 2017-12-29 13:00:30 -08:00
parent 761ae4a80c
commit 6787c001d2
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
5 changed files with 9 additions and 6 deletions

View File

@ -13,6 +13,9 @@ compat:
node:
@npm run webpack-node
browserify:
@npm run browserify
clean:
@npm run clean
@ -25,4 +28,4 @@ lint:
test:
@npm test
.PHONY: all app browser compat node clean docs lint test
.PHONY: all app browser compat node browserify clean docs lint test

View File

@ -1,5 +1,5 @@
/*!
* nfkd-browser.js - unicode normalization for bcoin
* nfkd-compat.js - unicode normalization for bcoin
* Copyright (c) 2014-2017, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcoin
*/

View File

@ -11,7 +11,7 @@
* @const {String}
*/
exports.version = 'v1.0.0-beta.16';
exports.version = 'v1.0.0-pre';
/**
* Repository URL.

View File

@ -1,6 +1,6 @@
{
"name": "bcoin",
"version": "1.0.0-beta.15",
"version": "1.0.0-pre",
"description": "Bitcoin bike-shed",
"license": "MIT",
"repository": "git://github.com/bcoin-org/bcoin.git",
@ -82,7 +82,7 @@
"webpack-app": "webpack --config webpack.app.js"
},
"browser": {
"./lib/hd/nfkd": "./lib/hd/nfkd-browser.js",
"./lib/hd/nfkd": "./lib/hd/nfkd-compat.js",
"./lib/hd/wordlist": "./lib/hd/wordlist-browser.js",
"./lib/workers/child": "./lib/workers/child-browser.js",
"./lib/workers/parent": "./lib/workers/parent-browser.js",

View File

@ -20,7 +20,7 @@ module.exports = {
},
resolve: {
modules: ['node_modules'],
extensions: ['-browser.js', '.js', '.json']
extensions: ['-compat.js', '-browser.js', '.js', '.json']
},
module: {
rules: [{