1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-01-17 05:28:31 +01:00

webpack literally breaks paper.js when it minifies

This commit is contained in:
Pomax 2018-06-24 00:04:09 -07:00
parent 3d334c2559
commit e5821b3f6a
13 changed files with 883 additions and 41350 deletions

File diff suppressed because one or more lines are too long

View File

@ -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

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2142
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}

View File

@ -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