Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colors-generator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colors-generator - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

10

package.json
{
"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])
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc