refactor(build): set env to production

This commit is contained in:
moklick
2019-09-13 16:25:12 +02:00
parent eb4d930630
commit 5ce476ff81
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import React, { PureComponent } from 'react';
import Graph, { isEdge, removeElements, getOutgoers, Handle, MiniMap } from '../src';
// import Graph, { isEdge, removeElements, getOutgoers, Handle } from '../dist/ReactGraph';
// import Graph, { isEdge, removeElements, getOutgoers, Handle, MiniMap } from '../dist/ReactGraph';
const SpecialNode = ({ data, styles }) => (
<div

View File

@@ -37,12 +37,12 @@
"rollup-plugin-serve": "^1.0.1"
},
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8.6",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"prop-types": "^15.0.0-0"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --environment NODE_ENV:production",
"watch": "rollup -w -c",
"dev": "parcel example/index.html -d example/build",
"build:example": "parcel build example/index.html -d example/build"