javascript-color-gradient
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "javascript-color-gradient", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "javascript-color-gradient is a lightweight JavaScript library, used to generate an array of color gradients by providing start and finish colors, as well as the required number of midpoints. ", | ||
"main": "dist/index.js", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "mocha src/index.test.js -w", | ||
"prebuild": "rimraf dist", | ||
"prebuild": "rimraf src", | ||
"build": "npm-run-all --parallel build:*", | ||
"build:main": "babel --out-dir dist --ignore *.test.js src", | ||
"build:main": "babel --out-dir src --ignore *.test.js src", | ||
"build:umd": "webpack --output-filename index.umd.js", | ||
@@ -12,0 +12,0 @@ "build:umd.min": "webpack --output-filname index.umd.min.js -p" |
@@ -1,14 +0,13 @@ | ||
import { join } from 'path' | ||
const path = require("path"); | ||
const include = join(__dirname, 'src'); | ||
const include = path.join(__dirname, "src"); | ||
export default { | ||
entry: './src/index', | ||
output: { | ||
path: join(__dirname, 'dist'), | ||
libraryTarget: 'umd', | ||
library: 'javascriptColorGradient', | ||
}, | ||
devtool: 'source-map' | ||
} | ||
entry: "./src/index", | ||
output: { | ||
path: include, | ||
libraryTarget: "umd", | ||
library: "javascriptColorGradient", | ||
}, | ||
devtool: "source-map", | ||
}; |
154
12038