-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
39 lines (38 loc) · 1.28 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// vue.config.js
const webpack = require("webpack");
module.exports = {
configureWebpack: {
resolve: {
fallback: {
// url: require.resolve("url/"),
// crypto: require.resolve("crypto-browserify"),
// fs: false,
// path: require.resolve("path-browserify"),
// util: require.resolve("util/"),
// stream: require.resolve("stream-browserify"),
// http: require.resolve("stream-http"),
// https: require.resolve("https-browserify"),
// zlib: require.resolve("browserify-zlib"),
// assert: require.resolve("assert/"),
// buffer: require.resolve("buffer/"),
// encoding: require.resolve("encoding"),
// process: require.resolve("process/browser"),
// constants: require.resolve("constants-browserify"),
// "readable-stream/transform": require.resolve(
// "readable-stream/lib/_stream_transform.js"
// ),
// "readable-stream/passthrough": require.resolve(
// "readable-stream/lib/_stream_passthrough.js"
// ),
},
},
},
chainWebpack: (config) => {
// config.plugin("provide").use(webpack.ProvidePlugin, [
// {
// Buffer: ["buffer", "Buffer"],
// process: "process/browser",
// },
// ]);
},
};