refactor(build): set env to production
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
|
|
||||||
import Graph, { isEdge, removeElements, getOutgoers, Handle, MiniMap } from '../src';
|
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 }) => (
|
const SpecialNode = ({ data, styles }) => (
|
||||||
<div
|
<div
|
||||||
|
|||||||
+3
-3
@@ -37,12 +37,12 @@
|
|||||||
"rollup-plugin-serve": "^1.0.1"
|
"rollup-plugin-serve": "^1.0.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^16.8.0",
|
"react": "^16.9.0",
|
||||||
"react-dom": "^16.8.6",
|
"react-dom": "^16.9.0",
|
||||||
"prop-types": "^15.0.0-0"
|
"prop-types": "^15.0.0-0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "rollup -c --environment NODE_ENV:production",
|
||||||
"watch": "rollup -w -c",
|
"watch": "rollup -w -c",
|
||||||
"dev": "parcel example/index.html -d example/build",
|
"dev": "parcel example/index.html -d example/build",
|
||||||
"build:example": "parcel build example/index.html -d example/build"
|
"build:example": "parcel build example/index.html -d example/build"
|
||||||
|
|||||||
Reference in New Issue
Block a user