Remove alias to vtk and just keep it external
Comment out passing through UglifyJs
MODIFY
external.config.js
external.config.js
@@ -16,23 +16,20 @@ module.exports = {
alias: {
d3: 'd3/d3.js',
hammerjs: 'hammerjs/hammer.js',
- vtk: 'vtk.js/dist/vtk.js'
}
},
- plugins: [
- new webpack.optimize.UglifyJsPlugin({
- include: /\.min\.js$/,
- minimize: true,
- comments: /@(license|copyright)/
- })
- ],
+// plugins: [
+// new webpack.optimize.UglifyJsPlugin({
+// include: /\.min\.js$/,
+// minimize: true,
+// comments: /@(license|copyright)/
+// })
+// ],
module: {
loaders: [{
test: require.resolve('d3'), loader: 'expose?d3'
}, {
test: require.resolve('hammerjs'), loader: 'expose?hammerjs'
- }, {
- test: require.resolve('vtk.js'), loader: 'expose?vtk'
}]
}
};

MODIFY
package.json
package.json
"jaguarjs-jsdoc": "^1.0.2",
"jasmine-core": "^2.4.1",
"jquery": "~2.2.1",
+ "js-yaml": "^3.10.0",
"jsdoc": "^3.5",
"jsdoc-autoprivate": "0.0.1",
"json-loader": "^0.5.4",
"jstransformer-markdown-it": "^2.0.0",
- "js-yaml": "^3.10.0",
"karma": "^0.13.22",
- "karma-coverage": "^1.0.0",
"karma-chrome-launcher": "^2.2.0",
+ "karma-coverage": "^1.0.0",
"karma-firefox-launcher": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.0",
"pug-loader": "^2.3.0",
"raw-body": "^2.1.6",
"sinon": "1.17.3",
- "string-replace-webpack-plugin": "^0.1.3",
"string-replace-loader": "1.0.5",
+ "string-replace-webpack-plugin": "^0.1.3",
"style-loader": "^0.13.1",
"stylus": "^0.54.5",
"stylus-loader": "^2.4.0",
"typeface-lato": "^0.0.44",
"url-loader": "^0.5.7",
"vgl": "0.3.10",
- "vtk.js": "github:kitware/vtk-js",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1",
"xmlbuilder": "^8.2.2"
"webgl",
"svg"
],
- "main": "geo.js"
+ "main": "geo.js",
+ "dependencies": {
+ "vtk.js": "^5.15.6"
+ }
}

MODIFY
webpack.config.js
webpack.config.js
@@ -34,7 +34,6 @@ module.exports = {
},
resolve: {
alias: {
- vtk: 'vtk.js/dist/vtk.js',
jquery: 'jquery/dist/jquery',
proj4: 'proj4/lib',
vgl: 'vgl/vgl.js',
@@ -46,7 +45,7 @@ module.exports = {
externals: {
d3: 'd3',
hammerjs: 'Hammer',
- vtk: 'vtk.js'
+ vtkjs: 'vtk.js'
},
plugins: [
define_plugin

Remove alias to vtk and just keep it external

Comment out passing through UglifyJs