stl-viewer
Advanced tools
Comparing version 0.1.5 to 0.2.1
{ | ||
"name": "stl-viewer", | ||
"version": "0.1.5", | ||
"version": "0.2.1", | ||
"description": "A component for viewing an STL object from a given URL by utilizing Three.js", | ||
@@ -22,3 +22,3 @@ "main": "dist/STLViewer.js", | ||
"scripts": { | ||
"build": "./node_modules/babel-cli/bin/babel.js -d dist src/", | ||
"build": "./node_modules/babel-cli/bin/babel.js -d dist src/ && NODE_ENV=production webpack -p --config webpack.config.prod.js", | ||
"start": "NODE_ENV=development node --harmony server.js", | ||
@@ -40,3 +40,3 @@ "prepublish": "npm run build" | ||
"babel-cli": "^6.3.17", | ||
"babel-core": "^6.3.17", | ||
"babel-core": "^6.3.15", | ||
"babel-eslint": "^5.0.0-beta4", | ||
@@ -43,0 +43,0 @@ "babel-loader": "^6.2.0", |
@@ -9,4 +9,4 @@ import React, {Component} from 'react'; | ||
<div> | ||
<STLViewer url="http://localhost:4001/static/crazy-thing.stl" /> | ||
<STLViewer url="http://localhost:4001/static/bottle.stl" rotate={false} /> | ||
<STLViewer url="dist/static/crazy-thing.stl" /> | ||
<STLViewer url="dist/static/bottle.stl" rotate={false} /> | ||
</div> | ||
@@ -13,0 +13,0 @@ ); |
@@ -5,2 +5,4 @@ # React STL Viewer | ||
See a <a href="http://chiedolabs.github.io/react-stl-viewer/" target="_blank">live demo here.</a> | ||
*Note that you will still have to abide by the rules of CORS so you won't just be able to load a 3D file from someone else's site* | ||
@@ -7,0 +9,0 @@ |
@@ -25,9 +25,6 @@ 'use strict'; | ||
// Allows for the use of other static resources | ||
app.use('/static', express.static('dist/static')); | ||
app.use('/dist', express.static('dist')); | ||
app.set('view engine', 'ejs'); | ||
app.get('*', (req, res) => { | ||
res.render(path.join(__dirname, 'index.ejs'), { | ||
}); | ||
res.sendFile(path.join(__dirname,'index.html')); | ||
}); | ||
@@ -34,0 +31,0 @@ |
@@ -14,3 +14,3 @@ /* eslint no-var: 0 */ | ||
filename: 'react-bundle.js', | ||
publicPath: '/static/js/', | ||
publicPath: '/dist/static/js/', | ||
}, | ||
@@ -17,0 +17,0 @@ plugins: [ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6436114
19
3211
25
1