-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
46 lines (43 loc) · 1.13 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
40
41
42
43
44
45
46
const FaviconsWebpackPlugin = require('favicons-webpack-plugin')
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/plasmafractal-gl/' // for GitHub pages
: '/',
// Override the default of "dist" for testing build locally while 'publicPath' is overriden.
outputDir: './plasmafractal-gl',
configureWebpack: {
plugins: [
// https://github.com/jantimon/favicons-webpack-plugin
new FaviconsWebpackPlugin({
logo: './src/assets/logo.png', // svg works too!
mode: 'webapp', // optional can be 'webapp' or 'light' - 'webapp' by default
devMode: 'light', // optional can be 'webapp' or 'light' - 'light' by default
favicons: {
background: '#000',
icons: {
favicons: true,
android: true,
appleIcon: true,
appleStartup: false,
coast: false,
firefox: false,
windows: false,
yandex: false,
}
}
})
],
module: {
rules: [
{
test: /\.(glsl|vs|fs|vert|frag)$/,
exclude: /node_modules/,
use: [
'raw-loader',
'glslify-loader'
]
}
]
}
}
}