draft-js-undo-plugin
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6
11
17256
280
- Removedfind-with-regex@^1.0.2
- Removeddraft-js@0.10.5(transitive)
- Removedfind-with-regex@1.1.3(transitive)
- Removedimmutable@3.7.6(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedscheduler@0.19.1(transitive)