-
Notifications
You must be signed in to change notification settings - Fork 7
/
vue.config.js
27 lines (25 loc) · 936 Bytes
/
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
const webpack = require('webpack')
const { GitRevisionPlugin } = require('git-revision-webpack-plugin')
const gitRevisionPlugin = new GitRevisionPlugin({ branch: true })
module.exports = {
productionSourceMap: false,
transpileDependencies: ['vue-lazy-youtube-video', 'vue-mapbox'],
configureWebpack: {
plugins: [
gitRevisionPlugin,
new webpack.DefinePlugin({
'VERSION': JSON.stringify(gitRevisionPlugin.version()),
'COMMITHASH': JSON.stringify(gitRevisionPlugin.commithash()),
'BRANCH': JSON.stringify(gitRevisionPlugin.branch())
})
],
resolve: {
fallback: {
fs: false,
path: false
},
exportsFields: [] // Needed because @maptiler/sdk uses "import" instead of "style" on the .css export in its package.json; see also https://github.com/webpack/webpack/issues/9509#issuecomment-1915084026
}
},
publicPath: process.env.PUBLIC_PATH
}