Showing
4 changed files
with
55 additions
and
0 deletions
lambda/gif-upload/.gitignore
0 → 100644
lambda/gif-upload/package.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "gif-upload", | ||
| 3 | + "version": "1.0.0", | ||
| 4 | + "description": "", | ||
| 5 | + "main": "index.js", | ||
| 6 | + "scripts": { | ||
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | ||
| 8 | + }, | ||
| 9 | + "author": "", | ||
| 10 | + "license": "ISC", | ||
| 11 | + "dependencies": { | ||
| 12 | + "aws-sdk": "^2.905.0", | ||
| 13 | + "busboy": "^0.3.1", | ||
| 14 | + "uuid": "^8.3.2" | ||
| 15 | + }, | ||
| 16 | + "devDependencies": { | ||
| 17 | + "uglifyjs-webpack-plugin": "^2.2.0" | ||
| 18 | + } | ||
| 19 | +} |
lambda/gif-upload/src/import.js
0 → 100644
lambda/gif-upload/webpack.config.js
0 → 100644
| 1 | +const path = require('path'); | ||
| 2 | + | ||
| 3 | +module.exports = { | ||
| 4 | + entry: './src/import.js', | ||
| 5 | + output: { | ||
| 6 | + path: __dirname + '/dist', | ||
| 7 | + filename: 'bundle.js', | ||
| 8 | + library: 'import', | ||
| 9 | + libraryTarget: 'commonjs2' | ||
| 10 | + }, | ||
| 11 | + module: { | ||
| 12 | + rules: [ | ||
| 13 | + { | ||
| 14 | + test: /\.js$/, | ||
| 15 | + include: [ | ||
| 16 | + path.resolve(__dirname, 'src/js') | ||
| 17 | + ], | ||
| 18 | + exclude: /node_modules/ | ||
| 19 | + } | ||
| 20 | + ] | ||
| 21 | + }, | ||
| 22 | + mode: 'development', | ||
| 23 | + devtool:false, | ||
| 24 | + resolve: { | ||
| 25 | + fallback: { | ||
| 26 | + "fs":false, | ||
| 27 | + "stream": require.resolve("stream-browserify") | ||
| 28 | + } | ||
| 29 | + } | ||
| 30 | +}; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment