mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-01-17 13:38:33 +01:00
webpack literally breaks paper.js when it minifies
This commit is contained in:
parent
3d334c2559
commit
e5821b3f6a
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@ var baseClass = {
|
||||
this.ctx.scale(dpr, dpr);
|
||||
|
||||
if (this.props.paperjs) {
|
||||
var Paper = this.Paper = require("../lib/vendor/paperjs/paper-core");
|
||||
var Paper = this.Paper = require("paper/dist/paper-core");
|
||||
Paper.setup(cvs);
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
13375
lib/vendor/paperjs/paper-core.js
vendored
13375
lib/vendor/paperjs/paper-core.js
vendored
File diff suppressed because it is too large
Load Diff
37
lib/vendor/paperjs/paper-core.min.js
vendored
37
lib/vendor/paperjs/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
13704
lib/vendor/paperjs/paper-full.js
vendored
13704
lib/vendor/paperjs/paper-full.js
vendored
File diff suppressed because one or more lines are too long
38
lib/vendor/paperjs/paper-full.min.js
vendored
38
lib/vendor/paperjs/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
12917
lib/vendor/paperjs/paper-node.js
vendored
12917
lib/vendor/paperjs/paper-node.js
vendored
File diff suppressed because one or more lines are too long
2062
package-lock.json
generated
2062
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -50,8 +50,6 @@
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.3.17",
|
||||
"babel-loader": "^7.1.4",
|
||||
"babel-minify": "^0.4.3",
|
||||
"babel-minify-webpack-plugin": "^0.3.1",
|
||||
"babel-preset-es2015": "^6.3.13",
|
||||
"babel-preset-react": "^6.3.13",
|
||||
"babel-register": "^6.4.3",
|
||||
@ -82,6 +80,7 @@
|
||||
"marked": "^0.3.6",
|
||||
"mathjs": "^5.0.0",
|
||||
"npm-run-all": "^4.0.1",
|
||||
"paper": "^0.11.5",
|
||||
"pdfjs": "^1.0.0-alpha.5",
|
||||
"pirates": "^2.1.0",
|
||||
"preact": "^8.1.0",
|
||||
@ -98,8 +97,12 @@
|
||||
"shx": "^0.2.2",
|
||||
"style-loader": "^0.13.0",
|
||||
"svgo": "^0.6.6",
|
||||
"uglify-js": "^3.4.1",
|
||||
"webpack": "^4.12.0",
|
||||
"webpack-cli": "^3.0.8",
|
||||
"webpack-serve": "^1.0.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-minify": "^0.4.3"
|
||||
}
|
||||
}
|
||||
|
@ -53,6 +53,9 @@ module.exports = {
|
||||
entry: entry,
|
||||
output: output,
|
||||
resolve: resolve,
|
||||
optimization: {
|
||||
minimize: false
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user