We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac7d02 commit 04f6f6bCopy full SHA for 04f6f6b
vue.config.js
@@ -4,7 +4,8 @@ const ManifestPlugin = require('webpack-manifest-plugin')
4
config = {
5
https: false,
6
host: 'localhost',
7
- port: 8080
+ port: 8080,
8
+ watchDir: 'templates'
9
}
10
11
module.exports = {
@@ -22,7 +23,7 @@ module.exports = {
22
23
https: config.https,
24
before(app, server) {
25
const sane = require('sane')
- var watcher = sane(path.join(__dirname, 'templates'), {glob: ['**/*']});
26
+ var watcher = sane(path.join(__dirname, config.watchDir), {glob: ['**/*']});
27
watcher.on('change', function (filepath, root, stat) {
28
console.log(' File saved:', filepath);
29
server.sockWrite(server.sockets, "content-changed");
0 commit comments