Skip to content

Commit

Permalink
webpack relative path issue fix plus react 16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Dekker committed Oct 16, 2017
1 parent d04d4c3 commit 4909c01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"test": "_mocha",
"coverage": "istanbul cover _mocha -- -R spec",
"check-coverage": "istanbul check-coverage --statement 90 --function 100",
"test-cover": "istanbul cover _mocha --report lcovonly -- -R spec && cat coverage/lcov.info | \"node_modules/coveralls/bin/coveralls.js\" --verbose",
"dist": "\"node_modules/.bin/rimraf\" dist/* && \"node_modules/.bin/webpack\""
"test-cover": "istanbul cover _mocha --report lcovonly -- -R spec && cat coverage/lcov.info | coveralls.js --verbose",
"dist": "rimraf dist/* && webpack"
},
"repository": {
"type": "git",
Expand All @@ -38,9 +38,9 @@
"istanbul": "^0.4.5",
"jsdom": "^11.3.0",
"mocha": "^4.0.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"webpack": "^3.6.0"
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0",
"webpack": "^2.0.0 || ^3.0.0"
},
"dependencies": {
"blacklist": "^1.1.4",
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ var pkg = require('./package.json');

module.exports = [
{
entry: './lib/highlighter.js',
entry: (__dirname + '/lib/highlighter.js'),
output: {
path: './dist',
path: (__dirname + '/dist'),
pathinfo: true,
sourcePrefix: '',
filename: 'ReactHighlighter-v' + pkg.version + '.js',
Expand All @@ -17,9 +17,9 @@ module.exports = [
}
},
{
entry: './lib/highlighter.js',
entry: (__dirname + '/lib/highlighter.js'),
output: {
path: './dist',
path: (__dirname + '/dist'),
filename: 'ReactHighlighter-v' + pkg.version + '.min.js',
library: 'ReactHighlighter',
libraryTarget: "umd"
Expand Down

0 comments on commit 4909c01

Please sign in to comment.