Add webpack

This commit is contained in:
Jerome Wu
2019-10-23 21:52:04 +08:00
parent 9ff7984c4c
commit 99adf5138c
8 changed files with 5395 additions and 1 deletions

View File

@@ -7,9 +7,15 @@
"example": "examples"
},
"scripts": {
"start": "node scripts/server.js",
"build": "rimraf dist && webpack --config scripts/webpack.config.prod.js",
"prepublishOnly": "npm run build",
"test": "mocha",
"lint": "eslint src"
},
"browser": {
"./src/worker/node/index.js": "./src/worker/browser/index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jeromewu/ffmpeg.js.git"
@@ -29,9 +35,17 @@
"@ffmpeg/core": "^0.1.0"
},
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"babel-loader": "^8.0.6",
"cors": "^2.8.5",
"eslint": "^6.1.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"mocha": "^6.2.2"
"express": "^4.17.1",
"mocha": "^6.2.2",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9",
"webpack-dev-middleware": "^3.7.2"
}
}