Socket
Socket
Sign inDemoInstall

draft-js-undo-plugin

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draft-js-undo-plugin - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.babelrc

8

package.json
{
"name": "draft-js-undo-plugin",
"version": "0.0.1",
"version": "0.0.2",
"description": "Undo Plugin for DraftJS",

@@ -30,3 +30,6 @@ "author": {

"scripts": {
"build": "NODE_ENV=production BABEL_ENV=production ../node_modules/.bin/webpack --config webpack.config.js",
"clean": "../node_modules/.bin/rimraf lib",
"build": "npm run clean && npm run build:js && npm run build:css",
"build:js": "WEBPACK_CONFIG=$(pwd)/webpack.config.js BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production ../node_modules/.bin/babel --out-dir='lib' --ignore='__test__/*' src",
"build:css": "node ../scripts/concatCssFiles $(pwd) && ../node_modules/.bin/rimraf lib-css",
"prepublish": "npm run build"

@@ -38,3 +41,2 @@ },

"draft-js": "^0.3.0",
"find-with-regex": "^1.0.2",
"immutable": "^3.7.6",

@@ -41,0 +43,0 @@ "union-class-names": "^1.0.0"

/* eslint-disable no-var */
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');

@@ -8,32 +7,12 @@ var autoprefixer = require('autoprefixer');

module.exports = {
devtool: 'source-map',
entry: {
index: ['./src/index.js'],
},
output: {
path: path.join(__dirname, 'lib'),
filename: '[name].js',
libraryTarget: 'commonjs2',
publicPath: '/',
libraryTarget: 'commonjs2', // necessary for the babel plugin
path: path.join(__dirname, 'lib-css'), // where to place webpack files
},
resolve: {
extensions: ['', '.js'],
},
module: {
loaders: [
{
test: /\.js$/,
loaders: ['babel'],
include: [
path.join(__dirname, 'src'),
],
}, {
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[local]___[hash:base64:5]!postcss-loader'),
include: [
path.join(__dirname, 'src'),
],
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsUndoPlugin__[local]__[hash:base64:5]!postcss-loader'),
},

@@ -43,17 +22,5 @@ ],

postcss: [autoprefixer({ browsers: ['> 1%'] })],
plugins: [
new ExtractTextPlugin('plugin.css', { allChunks: true }),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
},
}),
// new webpack.optimize.UglifyJsPlugin({
// screw_ie8: true,
// compressor: { warnings: false },
// }),
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
],
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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