-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvue.config.js
More file actions
34 lines (29 loc) · 852 Bytes
/
Copy pathvue.config.js
File metadata and controls
34 lines (29 loc) · 852 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
29
30
31
32
33
34
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
// const { execSync } = require('child_process')
process.env.VUE_APP_VERSION = require("./package.json").version;
// process.env.VUE_APP_GIT_BRANCH = process.env.CI_BRANCH || execSync('git rev-parse --abbrev-ref HEAD').toString('utf8').trim()
module.exports = {
outputDir: "dist",
runtimeCompiler: true,
configureWebpack: {
// resolve: {
// alias: require('./aliases.config').webpack
// },
plugins: [
new CopyWebpackPlugin([
{
from: path.join(__dirname, "src/extension"),
to: path.join(__dirname, "dist"),
toType: "dir",
ignore: ["index.html", ".DS_Store"],
},
]),
],
},
css: {
// Enable CSS source maps.
sourceMap: false,
},
lintOnSave: true,
};