forked from paritytech/banana_split
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
28 lines (26 loc) · 788 Bytes
/
vue.config.js
File metadata and controls
28 lines (26 loc) · 788 Bytes
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
let HtmlWebpackPlugin = require("html-webpack-plugin");
let HtmlWebpackInlineSourcePlugin = require("html-webpack-inline-source-plugin");
let Webpack = require("webpack");
// eslint-disable-next-line security/detect-child-process
let childProcess = require("child_process");
let GIT_REVISION = childProcess.execSync("git rev-parse HEAD").toString();
module.exports = {
productionSourceMap: false,
css: {
extract: false
},
configureWebpack: {
plugins: [
new HtmlWebpackPlugin({
template: "public/index.html",
inlineSource: ".(js|css)$"
}),
new HtmlWebpackInlineSourcePlugin(HtmlWebpackPlugin),
new Webpack.DefinePlugin({
"process.env": {
GIT_REVISION: JSON.stringify(GIT_REVISION)
}
})
]
}
};