Skip to content

Commit c60357b

Browse files
committed
fixed the minification error
1 parent 2a4f5e0 commit c60357b

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"name": "es6-data-structures",
33
"version": "1.0.0-pre-alpha-4",
4-
"description": "There are neither a lot of resources on internet nor any book which guides and dictates best practices in the implementation of popular Data Structures using Javascript. The purpose of this library is to provide cooked implementation of populare data structures in javascript.",
4+
"description":
5+
"There are neither a lot of resources on internet nor any book which guides and dictates best practices in the implementation of popular Data Structures using Javascript. The purpose of this library is to provide cooked implementation of populare data structures in javascript.",
56
"main": "index.js",
6-
"files": [
7-
"lib",
8-
"typings",
9-
"README.md"
10-
],
7+
"files": ["lib", "typings", "README.md"],
118
"scripts": {
129
"build:win32": "SET WEBPACK_ENV=build & webpack",
13-
"build": "WEBPACK_ENV=build & node_modules/.bin/webpack",
10+
"build": "export WEBPACK_ENV=build; node_modules/.bin/webpack",
1411
"dev:win32": "SET WEBPACK_ENV=dev & webpack",
15-
"dev": "WEBPACK_ENV=dev & node_modules/.bin/webpack",
16-
"dev:watch:win32": "SET WEBPACK_ENV=dev & webpack --progress --colors --watch",
17-
"dev:watch": "WEBPACK_ENV=dev & node_modules/.bin/webpack --progress --colors --watch",
12+
"dev": "export WEBPACK_ENV=dev; node_modules/.bin/webpack",
13+
"dev:watch:win32":
14+
"SET WEBPACK_ENV=dev & webpack --progress --colors --watch",
15+
"dev:watch":
16+
"export WEBPACK_ENV=dev; node_modules/.bin/webpack --progress --colors --watch",
1817
"test:win32": "SET WEBPACK_ENV=dev & karma start",
19-
"test": "WEBPACK_ENV=dev & karma start",
18+
"test": "export WEBPACK_ENV=dev; karma start",
2019
"test:travis:win32": "SET WEBPACK_ENV=dev & karma start --single-run",
21-
"test:travis": "WEBPACK_ENV=dev & karma start --single-run",
22-
"coveralls": "cat ./coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
20+
"test:travis": "export WEBPACK_ENV=dev; karma start --single-run",
21+
"coveralls":
22+
"cat ./coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
2323
"prepublish": "npm build & npm run dev",
2424
"build&publish": "npm run prepublish & npm publish"
2525
},

webpack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ var webpack = require('webpack');
22
var path = require('path');
33
var UglifyJsPlugin = require('uglifyjs-webpack-plugin');
44
var libraryName = 'ds';
5-
var plugins = [], outputFile;
6-
5+
var plugins = [],
6+
outputFile;
77

88
if (process.env.WEBPACK_ENV && process.env.WEBPACK_ENV.trim() === 'build') {
9-
console.log(process.env.WEBPACK_ENV);
109
plugins.push(new UglifyJsPlugin({ minimize: true }));
1110
outputFile = libraryName + '.min.js';
1211
} else {
@@ -35,7 +34,7 @@ var config = {
3534
},
3635
{
3736
test: /(\.jsx|\.js)$/,
38-
loader: "eslint-loader",
37+
loader: 'eslint-loader',
3938
exclude: /node_modules/
4039
}
4140
]
@@ -46,4 +45,4 @@ var config = {
4645
}
4746
};
4847

49-
module.exports = config;
48+
module.exports = config;

0 commit comments

Comments
 (0)