Merge pull request #32 from ueokande/build-package

Build package
jh-changes
Shin'ya Ueoka 7 years ago committed by GitHub
commit 956b5d5a96
  1. 1
      .gitignore
  2. 1
      .travis.yml
  3. 12
      manifest.json
  4. 263
      package-lock.json
  5. 6
      package.json
  6. 20
      package.sh
  7. 70
      resources/icon.svg
  8. BIN
      resources/icon_48x48.png
  9. BIN
      resources/icon_96x96.png
  10. 12
      webpack.config.js

1
.gitignore vendored

@ -1,2 +1,3 @@
/node_modules/
/build/
*.zip

@ -9,3 +9,4 @@ before_script:
script:
- npm run lint
- npm test
- npm run package

@ -3,6 +3,15 @@
"name": "Vim Vixen",
"description": "Vim Vixen",
"version": "0.0.1",
"icons": {
"48": "resources/icon_48x48.png",
"96": "resources/icon_96x96.png"
},
"applications": {
"gecko": {
"id": "vim-vixen@i-beam.org"
}
},
"content_scripts": [
{
"matches": [ "http://*/*", "https://*/*" ],
@ -21,7 +30,8 @@
"tabs"
],
"web_accessible_resources": [
"build/console.html"
"build/console.html",
"build/console.js"
],
"options_ui": {
"page": "build/settings.html"

263
package-lock.json generated

@ -480,6 +480,18 @@
"lodash": "4.17.4"
}
},
"babel-helper-evaluate-path": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.2.0.tgz",
"integrity": "sha512-0EK9TUKMxHL549hWDPkQoS7R0Ozg1CDLheVBHYds2B2qoAvmr9ejY3zOXFsrICK73TN7bPhU14PBeKc8jcBTwg==",
"dev": true
},
"babel-helper-flip-expressions": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.2.0.tgz",
"integrity": "sha512-rAsPA1pWBc7e2E6HepkP2e1sXugT+Oq/VCqhyuHJ8aJ2d/ifwnJfd4Qxjm21qlW43AN8tqaeByagKK6wECFMSw==",
"dev": true
},
"babel-helper-function-name": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz",
@ -513,6 +525,24 @@
"babel-types": "6.25.0"
}
},
"babel-helper-is-nodes-equiv": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/babel-helper-is-nodes-equiv/-/babel-helper-is-nodes-equiv-0.0.1.tgz",
"integrity": "sha1-NOmzALFHnd2Y7HfqC76TQt/jloQ=",
"dev": true
},
"babel-helper-is-void-0": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-helper-is-void-0/-/babel-helper-is-void-0-0.2.0.tgz",
"integrity": "sha512-Axj1AYuD0E3Dl7nT3KxROP7VekEofz3XtEljzURf3fABalLpr8PamtgLFt+zuxtaCxRf9iuZmbAMMYWri5Bazw==",
"dev": true
},
"babel-helper-mark-eval-scopes": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.2.0.tgz",
"integrity": "sha512-KJuwrOUcHbvbh6he4xRXZFLaivK9DF9o3CrvpWnK1Wp0B+1ANYABXBMgwrnNFIDK/AvicxQ9CNr8wsgivlp4Aw==",
"dev": true
},
"babel-helper-optimise-call-expression": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz",
@ -534,6 +564,12 @@
"lodash": "4.17.4"
}
},
"babel-helper-remove-or-void": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-helper-remove-or-void/-/babel-helper-remove-or-void-0.2.0.tgz",
"integrity": "sha512-1Z41upf/XR+PwY7Nd+F15Jo5BiQi5205ZXUuKed3yoyQgDkMyoM7vAdjEJS/T+M6jy32sXjskMUgms4zeiVtRA==",
"dev": true
},
"babel-helper-replace-supers": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz",
@ -548,6 +584,12 @@
"babel-types": "6.25.0"
}
},
"babel-helper-to-multiple-sequence-expressions": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-helper-to-multiple-sequence-expressions/-/babel-helper-to-multiple-sequence-expressions-0.2.0.tgz",
"integrity": "sha512-ij9lpfdP3+Zc/7kNwa+NXbTrUlsYEWPwt/ugmQO0qflzLrveTIkbfOqQztvitk81aG5NblYDQXDlRohzu3oa8Q==",
"dev": true
},
"babel-helpers": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz",
@ -578,6 +620,17 @@
"babel-runtime": "6.25.0"
}
},
"babel-minify-webpack-plugin": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-minify-webpack-plugin/-/babel-minify-webpack-plugin-0.2.0.tgz",
"integrity": "sha512-+5G5Qqm+DIVl7gY4rkHqlFRkaf1FZtz0imzu/Dy9+88AfOIuy7D5MQjkNgQr5gU6/YSZ+rImgxDqFcWkvvrjkQ==",
"dev": true,
"requires": {
"babel-core": "6.25.0",
"babel-preset-minify": "0.2.0",
"webpack-sources": "1.0.1"
}
},
"babel-plugin-check-es2015-constants": {
"version": "6.22.0",
"resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz",
@ -587,6 +640,101 @@
"babel-runtime": "6.25.0"
}
},
"babel-plugin-minify-builtins": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-builtins/-/babel-plugin-minify-builtins-0.2.0.tgz",
"integrity": "sha512-4i+8ntaS8gwVUcOz5y+zE+55OVOl2nTbmHV51D4wAIiKcRI8U5K//ip1GHfhsgk/NJrrHK7h97Oy5jpqt0Iixg==",
"dev": true,
"requires": {
"babel-helper-evaluate-path": "0.2.0"
}
},
"babel-plugin-minify-constant-folding": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.2.0.tgz",
"integrity": "sha512-B3ffQBEUQ8ydlIkYv2MkZtTCbV7FAkWAV7NkyhcXlGpD10PaCxNGQ/B9oguXGowR1m16Q5nGhvNn8Pkn1MO6Hw==",
"dev": true,
"requires": {
"babel-helper-evaluate-path": "0.2.0"
}
},
"babel-plugin-minify-dead-code-elimination": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.2.0.tgz",
"integrity": "sha512-zE7y3pRyzA4zK5nBou0kTcwUTSQ/AiFrynt1cIEYN7vcO2gS9ZFZoI0aO9JYLUdct5fsC1vfB35408yrzTyVfg==",
"dev": true,
"requires": {
"babel-helper-evaluate-path": "0.2.0",
"babel-helper-mark-eval-scopes": "0.2.0",
"babel-helper-remove-or-void": "0.2.0",
"lodash.some": "4.6.0"
}
},
"babel-plugin-minify-flip-comparisons": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-flip-comparisons/-/babel-plugin-minify-flip-comparisons-0.2.0.tgz",
"integrity": "sha512-QOqXSEmD/LhT3LpM1WCyzAGcQZYYKJF7oOHvS6QbpomHenydrV53DMdPX2mK01icBExKZcJAHF209wvDBa+CSg==",
"dev": true,
"requires": {
"babel-helper-is-void-0": "0.2.0"
}
},
"babel-plugin-minify-guarded-expressions": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-guarded-expressions/-/babel-plugin-minify-guarded-expressions-0.2.0.tgz",
"integrity": "sha512-5+NSPdRQ9mnrHaA+zFj+D5OzmSiv90EX5zGH6cWQgR/OUqmCHSDqgTRPFvOctgpo8MJyO7Rt7ajs2UfLnlAwYg==",
"dev": true,
"requires": {
"babel-helper-flip-expressions": "0.2.0"
}
},
"babel-plugin-minify-infinity": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-infinity/-/babel-plugin-minify-infinity-0.2.0.tgz",
"integrity": "sha512-U694vrla1lN6vDHWGrR832t3a/A2eh+kyl019LxEE2+sS4VTydyOPRsAOIYAdJegWRA4cMX1lm9azAN0cLIr8g==",
"dev": true
},
"babel-plugin-minify-mangle-names": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-mangle-names/-/babel-plugin-minify-mangle-names-0.2.0.tgz",
"integrity": "sha512-Gixuak1/CO7VCdjn15/8Bxe/QsAtDG4zPbnsNoe1mIJGCIH/kcmSjFhMlGJtXDQZd6EKzeMfA5WmX9+jvGRefw==",
"dev": true,
"requires": {
"babel-helper-mark-eval-scopes": "0.2.0"
}
},
"babel-plugin-minify-numeric-literals": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-numeric-literals/-/babel-plugin-minify-numeric-literals-0.2.0.tgz",
"integrity": "sha512-VcLpb+r1YS7+RIOXdRsFVLLqoh22177USpHf+JM/g1nZbzdqENmfd5v534MLAbRErhbz6SyK+NQViVzVtBxu8g==",
"dev": true
},
"babel-plugin-minify-replace": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.2.0.tgz",
"integrity": "sha512-SEW6zoSVxh3OH6E1LCgyhhTWMnCv+JIRu5h5IlJDA11tU4ZeSF7uPQcO4vN/o52+FssRB26dmzJ/8D+z0QPg5Q==",
"dev": true
},
"babel-plugin-minify-simplify": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.2.0.tgz",
"integrity": "sha512-Mj3Mwy2zVosMfXDWXZrQH5/uMAyfJdmDQ1NVqit+ArbHC3LlXVzptuyC1JxTyai/wgFvjLaichm/7vSUshkWqw==",
"dev": true,
"requires": {
"babel-helper-flip-expressions": "0.2.0",
"babel-helper-is-nodes-equiv": "0.0.1",
"babel-helper-to-multiple-sequence-expressions": "0.2.0"
}
},
"babel-plugin-minify-type-constructors": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-minify-type-constructors/-/babel-plugin-minify-type-constructors-0.2.0.tgz",
"integrity": "sha512-NiOvvA9Pq6bki6nP4BayXwT5GZadw7DJFDDzHmkpnOQpENWe8RtHtKZM44MG1R6EQ5XxgbLdsdhswIzTkFlO5g==",
"dev": true,
"requires": {
"babel-helper-is-void-0": "0.2.0"
}
},
"babel-plugin-syntax-flow": {
"version": "6.18.0",
"resolved": "https://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz",
@ -843,6 +991,39 @@
"babel-runtime": "6.25.0"
}
},
"babel-plugin-transform-inline-consecutive-adds": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.2.0.tgz",
"integrity": "sha512-GlhOuLOQ28ua9prg0hT33HslCrEmz9xWXy9ZNZSACppCyRxxRW+haYtRgm7uYXCcd0q8ggCWD2pfWEJp5iiZfQ==",
"dev": true
},
"babel-plugin-transform-member-expression-literals": {
"version": "6.8.5",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.8.5.tgz",
"integrity": "sha512-Ux3ligf+ukzWaCbBYOstDuFBhRgMiJHlpJBKV4P47qtzVkd0lg1ddPj9fqIJqAM0n+CvxipyrZrnNnw3CdtQCg==",
"dev": true
},
"babel-plugin-transform-merge-sibling-variables": {
"version": "6.8.6",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.8.6.tgz",
"integrity": "sha512-o5Jioq553HtEAUN5uty7ELJMenXIxHI3PIs1yLqYWYQwP6mg6IPVAJ+U7i4zr9XGF/kb2RGsdehglGTV+vngqA==",
"dev": true
},
"babel-plugin-transform-minify-booleans": {
"version": "6.8.3",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-minify-booleans/-/babel-plugin-transform-minify-booleans-6.8.3.tgz",
"integrity": "sha512-bPbUhkeN2Nc0KH0/A19GwQGj8w+CvdJzyu8t59VoEDgsNMQ9Bopzi5DrVkrSsVjbYUaZpzq/DYLrH+wD5K2Tig==",
"dev": true
},
"babel-plugin-transform-property-literals": {
"version": "6.8.5",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.8.5.tgz",
"integrity": "sha512-MmiQsQ5AcIaRZMJD0zY5C4H3xuHm06/nWgtOsz7AXV44VEIXIlPiJ39IFYJ4Qx67/fEm8zJAedzR8t+B7d10Bg==",
"dev": true,
"requires": {
"esutils": "2.0.2"
}
},
"babel-plugin-transform-react-display-name": {
"version": "6.25.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz",
@ -892,6 +1073,39 @@
"regenerator-transform": "0.9.11"
}
},
"babel-plugin-transform-regexp-constructors": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.2.0.tgz",
"integrity": "sha512-7IsQ6aQx6LAaOqy97/PthTf+5Nx9grZww3r6E62IdWe76Yr8KsuwVjxzqSPQvESJqTE3EMADQ9S0RtwWDGNG9Q==",
"dev": true
},
"babel-plugin-transform-remove-console": {
"version": "6.8.5",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.8.5.tgz",
"integrity": "sha512-uuCKvtweCyIvvC8fi92EcWRtO2Kt5KMNMRK6BhpDXdeb3sxvGM7453RSmgeu4DlKns3OlvY9Ep5Q9m5a7RQAgg==",
"dev": true
},
"babel-plugin-transform-remove-debugger": {
"version": "6.8.5",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.8.5.tgz",
"integrity": "sha512-InDQDdHPOLJKM+G6oXrEesf+P29QFBmcTXID+TAvZziVz+38xe2VO/Bn3FcRcRtnOOycbgsJkUNp9jIK+ist6g==",
"dev": true
},
"babel-plugin-transform-remove-undefined": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.2.0.tgz",
"integrity": "sha512-O8v57tPMHkp89kA4ZfQEYds/pzgvz/QYerBJjIuL5/Jc7RnvMVRA5gJY9zFKP7WayW8WOSBV4vh8Y8FJRio+ow==",
"dev": true,
"requires": {
"babel-helper-evaluate-path": "0.2.0"
}
},
"babel-plugin-transform-simplify-comparison-operators": {
"version": "6.8.5",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.8.5.tgz",
"integrity": "sha512-B3HlBZb+Uq86nRj5yNPO6pJ3noEdqHvzYkEYoUWtrsWTv48ZIRatYlumoOiif/v8llF13YjYjx9zhyznDx+N9g==",
"dev": true
},
"babel-plugin-transform-strict-mode": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz",
@ -902,6 +1116,12 @@
"babel-types": "6.25.0"
}
},
"babel-plugin-transform-undefined-to-void": {
"version": "6.8.3",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.8.3.tgz",
"integrity": "sha512-goYwp8dMrzHD6x9GjZ2M85Mk2vxf1h85CnUgAjfftUnlJvzF4uj5MrbReHBTbjQ96C8CuRzvhYZ3tv8H3Sc1ZA==",
"dev": true
},
"babel-polyfill": {
"version": "6.23.0",
"resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.23.0.tgz",
@ -954,6 +1174,37 @@
"babel-plugin-transform-flow-strip-types": "6.22.0"
}
},
"babel-preset-minify": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-preset-minify/-/babel-preset-minify-0.2.0.tgz",
"integrity": "sha512-mR8Q44RmMzm18bM2Lqd9uiPopzk5GDCtVuquNbLFmX6lOKnqWoenaNBxnWW0UhBFC75lEHTIgNGCbnsRI0pJVw==",
"dev": true,
"requires": {
"babel-plugin-minify-builtins": "0.2.0",
"babel-plugin-minify-constant-folding": "0.2.0",
"babel-plugin-minify-dead-code-elimination": "0.2.0",
"babel-plugin-minify-flip-comparisons": "0.2.0",
"babel-plugin-minify-guarded-expressions": "0.2.0",
"babel-plugin-minify-infinity": "0.2.0",
"babel-plugin-minify-mangle-names": "0.2.0",
"babel-plugin-minify-numeric-literals": "0.2.0",
"babel-plugin-minify-replace": "0.2.0",
"babel-plugin-minify-simplify": "0.2.0",
"babel-plugin-minify-type-constructors": "0.2.0",
"babel-plugin-transform-inline-consecutive-adds": "0.2.0",
"babel-plugin-transform-member-expression-literals": "6.8.5",
"babel-plugin-transform-merge-sibling-variables": "6.8.6",
"babel-plugin-transform-minify-booleans": "6.8.3",
"babel-plugin-transform-property-literals": "6.8.5",
"babel-plugin-transform-regexp-constructors": "0.2.0",
"babel-plugin-transform-remove-console": "6.8.5",
"babel-plugin-transform-remove-debugger": "6.8.5",
"babel-plugin-transform-remove-undefined": "0.2.0",
"babel-plugin-transform-simplify-comparison-operators": "6.8.5",
"babel-plugin-transform-undefined-to-void": "6.8.3",
"lodash.isplainobject": "4.0.6"
}
},
"babel-preset-react": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-preset-react/-/babel-preset-react-6.24.1.tgz",
@ -4435,6 +4686,12 @@
"integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=",
"dev": true
},
"lodash.isplainobject": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
"integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=",
"dev": true
},
"lodash.keys": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz",
@ -4458,6 +4715,12 @@
"integrity": "sha1-FQzwoWeR9ZA7iJHqsVRgknS96lU=",
"dev": true
},
"lodash.some": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz",
"integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0=",
"dev": true
},
"lodash.tail": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.tail/-/lodash.tail-4.1.1.tgz",

@ -2,8 +2,11 @@
"name": "vim-vixen",
"description": "Vim vixen",
"scripts": {
"start": "webpack -w --debug",
"start": "webpack -w -d",
"lint": "eslint --ext .jsx,.js src",
"build": "NODE_ENV=production webpack --progress --display-error-details",
"package": "npm run build && ./package.sh",
"lint": "eslint src",
"test": "karma start"
},
"repository": {
@ -20,6 +23,7 @@
"babel-cli": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.1",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",

@ -0,0 +1,20 @@
#!/bin/sh
MANIFEST="manifest.json"
version=$(jq -r '.version' $MANIFEST)
icons=$(jq -r '.icons[]' $MANIFEST)
content_scripts=$(jq -r '.content_scripts[].js[]' $MANIFEST)
background_scripts=$(jq -r '.background.scripts[]' $MANIFEST)
web_accessible_resources=$(jq -r '.web_accessible_resources[]' $MANIFEST)
options_ui=$(jq -r '.options_ui.page' $MANIFEST)
options_scripts=""
for html in $options_ui; do
scripts=$(grep -Po "(?<=src=['\"])[^'\"]*" "$html")
for js in $scripts; do
options_scripts="$options_scripts $(dirname $html)/$js"
done
done
zip ${version}.zip $MANIFEST $icons $content_scripts $background_scripts $web_accessible_resources $options_ui $options_scripts

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xml:space="preserve"
style="enable-background:new 0 0 512 512;"
viewBox="0 0 512 512"
y="0px"
x="0px"
id="Layer_1"
version="1.1"><metadata
id="metadata4563"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs4561" /><path
id="path4504"
d="M214.033,485.027C214.033,499.923,232.822,512,256,512s41.967-12.076,41.967-26.973L214.033,485.027 L214.033,485.027z"
style="fill:#afafaf;fill-opacity:1" /><path
id="path4506"
d="M440.656,329.137H256H71.344c0,0-33.574,33.574-33.574,67.148c0,0,117.508-67.148,142.689,41.967 c5.103,22.116,8.393,75.541,75.541,50.361c67.148,25.18,70.438-28.245,75.541-50.361c25.18-109.115,142.689-41.967,142.689-41.967 C474.229,362.711,440.656,329.137,440.656,329.137z"
style="fill:#cccccc;fill-opacity:1" /><path
id="path4508"
d="M298.596,159.475c0,0,125.902-159.475,167.869-159.475c25.18,0-16.787,201.443-41.967,268.59 L298.596,159.475z"
style="fill:#006b05;fill-opacity:1" /><path
id="path4510"
d="M466.465,0C382.53,58.754,348.956,201.443,348.956,201.443l-2.889-0.826l-47.471-41.141 C298.596,159.475,424.497,0,466.465,0z"
style="fill:#31a659;fill-opacity:1" /><path
id="path4512"
d="M205.01,159.475C205.01,159.475,79.108,0,37.141,0c-25.18,0,16.787,201.443,41.967,268.59 L205.01,159.475z"
style="fill:#006b05;fill-opacity:1" /><g
style="fill:#31a659;fill-opacity:1"
id="g4518"><path
id="path4514"
d="M37.141,0c83.934,58.754,117.508,201.443,117.508,201.443l2.889-0.826l47.471-41.141 C205.01,159.475,79.108,0,37.141,0z"
style="fill:#31a659;fill-opacity:1" /><path
id="path4516"
d="M12.59,386.098c0,0,92.328-58.754,159.475-16.787c35.588,22.243,25.18,83.585,83.934,83.585 s48.346-61.342,83.934-83.585c67.148-41.967,159.475,16.787,159.475,16.787c-41.967-151.082-148.476-251.803-243.409-251.803 S54.557,235.016,12.59,386.098z"
style="fill:#31a659;fill-opacity:1" /></g><g
id="g4526"><circle
id="circle4520"
r="16.787"
cy="327.344"
cx="188.852"
style="fill:#464655;" /><circle
id="circle4522"
r="16.787"
cy="327.344"
cx="323.148"
style="fill:#464655;" /><path
id="path4524"
d="M285.377,448.174c0,10.14-13.153,25.705-29.377,25.705s-29.377-15.565-29.377-25.705 c0-10.14,13.153-18.361,29.377-18.361C272.224,429.813,285.377,438.034,285.377,448.174z"
style="fill:#464655;" /></g><g
id="g4528" /><g
id="g4530" /><g
id="g4532" /><g
id="g4534" /><g
id="g4536" /><g
id="g4538" /><g
id="g4540" /><g
id="g4542" /><g
id="g4544" /><g
id="g4546" /><g
id="g4548" /><g
id="g4550" /><g
id="g4552" /><g
id="g4554" /><g
id="g4556" /></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

@ -1,10 +1,11 @@
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
const MinifyPlugin = require("babel-minify-webpack-plugin");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
const src = path.resolve(__dirname, 'src');
const dist = path.resolve(__dirname, 'build');
module.exports = {
config = {
entry: {
content: path.join(src, 'content'),
settings: path.join(src, 'settings'),
@ -56,3 +57,8 @@ module.exports = {
})
]
};
if (process.env.NODE_ENV === 'production') {
config.plugins.push(new MinifyPlugin());
}
module.exports = config