Skip to content

Commit

Permalink
feature: 清理多余的npm包
Browse files Browse the repository at this point in the history
  • Loading branch information
siaikin committed Oct 27, 2019
1 parent 0339273 commit 21728ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 42 deletions.
3 changes: 3 additions & 0 deletions jsdoc.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["plugins/markdown"]
}
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack-dev-server --env.demo",
"build": "webpack --env.debug",
"prepare": "babel src --out-dir es5"
"build": "webpack --env.browser --env.browser-min"
},
"repository": {
"type": "git",
Expand All @@ -27,7 +26,6 @@
},
"homepage": "https://github.com/siaikin/mdReverse#readme",
"files": [
"es5",
"src"
],
"devDependencies": {
Expand All @@ -40,13 +38,11 @@
"css-loader": "^2.1.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"html-webpack-plugin": "^3.2.0",
"jsdoc": "^3.6.3",
"spectre.css": "^0.5.8",
"style-loader": "^0.23.1",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.4.1"
},
"dependencies": {
"@babel/polyfill": "^7.4.4"
}
"dependencies": {}
}
36 changes: 1 addition & 35 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const path = require('path');
const htmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require("extract-text-webpack-plugin");

// 自定义NODE_ENV变量将其设置为开发模式
process.env.NODE_ENV = 'development';
Expand All @@ -9,7 +7,7 @@ const multiConfig = [
{
name: 'demo',
entry: './src/index.js',
mode: "development",
mode: "production",
output: {
path: path.resolve(__dirname, 'dist'),
filename: "md-reverse.demo.js",
Expand Down Expand Up @@ -46,38 +44,6 @@ const multiConfig = [
libraryTarget: 'umd',
libraryExport: 'default',
},
},
{
name: 'debug',
entry: './src/index.js',
mode: "production",
output: {
path: path.resolve(__dirname, 'dist'),
filename: "md-reverse.js",
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: [
[
'@babel/preset-env',
{
targets: "> 0.25%, not dead",
corejs: 3,
useBuiltIns: "usage"
}
]
]
}
}
}
]
}
}
];

Expand Down

0 comments on commit 21728ac

Please sign in to comment.