오윤석

gif upload modules

node_modules
dist
\ No newline at end of file
{
"name": "gif-upload",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"aws-sdk": "^2.905.0",
"busboy": "^0.3.1",
"uuid": "^8.3.2"
},
"devDependencies": {
"uglifyjs-webpack-plugin": "^2.2.0"
}
}
module.exports = {
Busboy:require('busboy'),
UUID:require('uuid')
}
\ No newline at end of file
const path = require('path');
module.exports = {
entry: './src/import.js',
output: {
path: __dirname + '/dist',
filename: 'bundle.js',
library: 'import',
libraryTarget: 'commonjs2'
},
module: {
rules: [
{
test: /\.js$/,
include: [
path.resolve(__dirname, 'src/js')
],
exclude: /node_modules/
}
]
},
mode: 'development',
devtool:false,
resolve: {
fallback: {
"fs":false,
"stream": require.resolve("stream-browserify")
}
}
};
\ No newline at end of file