@openstax/highlighter
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "@openstax/highlighter", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"main": "dist/highlighter.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -51,8 +51,5 @@ # Highlighter | ||
# increment version (this updates package.json and makes a git tag) | ||
yarn version [--minor|--major|--patch] | ||
# push to npm (this updates package.json and makes a git tag) | ||
yarn publish [--minor|--major|--patch] | ||
# push to npm | ||
yarn publish --new-version=$(yarn -s current) | ||
# push to github | ||
@@ -59,0 +56,0 @@ git push origin v$(yarn -s current) |
@@ -51,3 +51,3 @@ import Highlight, {FOCUS_CSS} from './Highlight'; | ||
public getReferenceElement(id: string): HTMLElement | null { | ||
return this.container.querySelector(`#${id}`); | ||
return this.container.querySelector(`[id="${id}"]`); | ||
} | ||
@@ -54,0 +54,0 @@ |
@@ -5,2 +5,5 @@ var path = require('path'); | ||
entry: './src/index.js', | ||
optimization: { | ||
minimize: false // disable minimazation since it's a library | ||
}, | ||
output: { | ||
@@ -12,10 +15,2 @@ path: path.resolve(__dirname, 'dist'), | ||
}, | ||
externals: { | ||
lodash: { | ||
commonjs: 'lodash', | ||
commonjs2: 'lodash', | ||
amd: 'lodash', | ||
root: '_' | ||
} | ||
}, | ||
resolve: { | ||
@@ -22,0 +17,0 @@ extensions: ['.js', '.ts'] |
Sorry, the diff of this file is too big to display
223083
5108
60