mirror of https://github.com/Lissy93/dashy.git
👷 Config for Vue dev server, to use user-data
This commit is contained in:
parent
a9548fe8f4
commit
ecacd145e0
|
@ -3,6 +3,8 @@
|
||||||
* See docs for all config options: https://cli.vuejs.org/config
|
* See docs for all config options: https://cli.vuejs.org/config
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
// Get app mode: production, development or test
|
// Get app mode: production, development or test
|
||||||
const mode = process.env.NODE_ENV || 'production';
|
const mode = process.env.NODE_ENV || 'production';
|
||||||
|
|
||||||
|
@ -28,6 +30,16 @@ const configureWebpack = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Development server config
|
||||||
|
const devServer = {
|
||||||
|
contentBase: [
|
||||||
|
path.join(__dirname, 'public'),
|
||||||
|
path.join(__dirname, 'user-data'),
|
||||||
|
],
|
||||||
|
watchContentBase: true,
|
||||||
|
publicPath: '/',
|
||||||
|
};
|
||||||
|
|
||||||
// Application pages
|
// Application pages
|
||||||
const pages = {
|
const pages = {
|
||||||
dashy: {
|
dashy: {
|
||||||
|
@ -43,6 +55,7 @@ module.exports = {
|
||||||
integrity,
|
integrity,
|
||||||
configureWebpack,
|
configureWebpack,
|
||||||
pages,
|
pages,
|
||||||
|
devServer,
|
||||||
chainWebpack: config => {
|
chainWebpack: config => {
|
||||||
config.module.rules.delete('svg');
|
config.module.rules.delete('svg');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue