colors-generator
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "colors-generator", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "", | ||
"main": "build/colors-generator.js", | ||
"scripts": { | ||
"start": "webpack-dev-server -w", | ||
"build": "webpack" | ||
"start": "webpack-dev-server -w --open --env=dev", | ||
"build": "webpack --env=prod" | ||
}, | ||
@@ -14,2 +14,6 @@ "author": "dongshuang.xds", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:zenxds/colors-generator.git" | ||
}, | ||
"devDependencies": { | ||
@@ -16,0 +20,0 @@ "babel-core": "^6.24.0", |
const path = require('path') | ||
const webpack = require('webpack') | ||
module.exports = { | ||
entry: './index.js', | ||
output: { | ||
path: path.join(__dirname, './build'), | ||
filename: 'colors-generator.js', | ||
library: "colors", | ||
libraryTarget: "umd" | ||
const config = { | ||
base: { | ||
entry: './index.js', | ||
output: { | ||
path: path.join(__dirname, './build'), | ||
filename: 'colors-generator.js', | ||
library: "colors", | ||
libraryTarget: "umd" | ||
}, | ||
module: { | ||
rules: [{ | ||
test: /\.jsx?$/, | ||
loader: 'babel-loader', | ||
exclude: /node_modules/ | ||
}] | ||
}, | ||
plugins: [] | ||
}, | ||
module: { | ||
rules: [{ | ||
test: /\.jsx?$/, | ||
loader: 'babel-loader', | ||
exclude: /node_modules/ | ||
}] | ||
dev: { | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin() | ||
] | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
output: { | ||
ascii_only: true | ||
}, | ||
compress: { | ||
warnings: false, | ||
drop_console: false | ||
} | ||
}) | ||
] | ||
prod: { | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
output: { | ||
ascii_only: true | ||
}, | ||
compress: { | ||
warnings: false, | ||
drop_console: false | ||
} | ||
}) | ||
] | ||
} | ||
} | ||
module.exports = function(env) { | ||
return Object.assign(config.base, config[env]) | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
9944
179
0