qiniu-js
Version:
Javascript SDK for Qiniu Resource (Cloud) Storage AP
43 lines (41 loc) • 821 B
JavaScript
var path = require("path");
var es3ifyPlugin = require("es3ify-webpack-plugin");
module.exports = {
entry: "./index.js",
output: {
filename: "boundle.js",
path: path.resolve(__dirname, "webpack/"),
publicPath: "/test/"
},
module: {
rules: [
{
test: /\.js$/,
include: [path.resolve(__dirname, "./index.js")],
use: {
loader: "babel-loader"
}
}
]
},
plugins:[
new es3ifyPlugin()
],
devServer: {
disableHostCheck: true,
progress: true,
proxy: {
"/api/*": {
target: "http://0.0.0.0:9000",
changeOrigin: true,
secure: false
}
},
host: "0.0.0.0",
port: 8000,
contentBase: path.join(__dirname, "./"),
publicPath: "/webpack/",
hot: true,
inline: false
}
};