Skip to content

Commit 3dff7d7

Browse files
authored
Merge pull request #50 from tbolis/bug/issue#49/react-hot-loader-bundled
Properly set NODE_ENV
2 parents db44660 + 6f58f73 commit 3dff7d7

File tree

14 files changed

+20
-28
lines changed

14 files changed

+20
-28
lines changed

examples/main.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/*eslint no-unused-vars: 0*/
2-
/*eslint no-console: 0*/
3-
4-
'use strict';
1+
/*eslint no-unused-vars: 0, no-console: 0*/
52

63
import React from 'react';
74
import {CompactPicker} from 'react-color';

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-sketch",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Sketch Element for React based applications, backed-up by fabricjs as its core",
55
"keywords": [
66
"react",
@@ -23,9 +23,9 @@
2323
"license": "MIT",
2424
"main": "./dist",
2525
"scripts": {
26-
"build": "webpack --mode production --config webpack/library.cfg.js --display-modules",
26+
"build": "cross-env NODE_ENV=production webpack --mode production --config webpack/library.cfg.js --display-modules",
2727
"build:light": "babel ./src --out-dir ./dist",
28-
"build:examples": "webpack --mode production --config webpack/examples.cfg.js",
28+
"build:examples": "cross-env NODE_ENV=production webpack --mode production --config webpack/examples.cfg.js",
2929
"clean": "rimraf dist build",
3030
"lint": "eslint ./src",
3131
"lint:fix": "eslint --fix ./src",
@@ -92,6 +92,7 @@
9292
"babel-loader": "8.0.4",
9393
"babel-plugin-lodash": "3.3.4",
9494
"canvas": "^1.6.12",
95+
"cross-env": "^5.2.0",
9596
"css-loader": "^1.0.1",
9697
"enzyme": "3.7.0",
9798
"enzyme-adapter-react-16": "1.7.0",

src/circle.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*eslint no-unused-vars: 0*/
2-
'use strict';
32

43
import FabricCanvasTool from './fabrictool'
54
import {linearDistance} from './utils';

src/fabrictool.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint no-unused-vars: 0 */
2-
'use strict';
32

43
/**
54
* "Abstract" like base class for a Canvas tool

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import SketchField from './SketchField'
42
import Tools from './tools'
53

src/line.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*eslint no-unused-vars: 0*/
2-
'use strict';
32

43
import FabricCanvasTool from './fabrictool'
54

src/pan.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*eslint no-unused-vars: 0*/
2-
'use strict';
32

43
import FabricCanvasTool from './fabrictool'
54

src/pencil.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21

32
import FabricCanvasTool from './fabrictool'
43

src/rectangle.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*eslint no-unused-vars: 0*/
2-
'use strict';
32

43
import FabricCanvasTool from './fabrictool'
54

src/select.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*eslint no-unused-vars: 0*/
2-
'use strict';
32

43
import FabricCanvasTool from './fabrictool'
54

0 commit comments

Comments
 (0)