鍍金池/ 問答/網(wǎng)絡(luò)安全  HTML/ vue 最新腳手架,怎么關(guān)閉這討厭的通知?

vue 最新腳手架,怎么關(guān)閉這討厭的通知?

clipboard.png

我還在寫代碼呢,他就不停地編譯,編譯然后報(bào)錯(cuò),然后各種彈通知,怎么關(guān)掉呀 謝謝了。

回答
編輯回答
互擼娃

你在編寫的時(shí)候不停的編譯應(yīng)該是你編輯器的問題,你看看你的編輯器是不是打開了自動(dòng)保存,eslint只會(huì)在你保存的時(shí)候去查找錯(cuò)誤。關(guān)閉eslint或者關(guān)閉編輯器的自動(dòng)保存,都能解決問題。

2018年9月2日 10:31
編輯回答
尛曖昧

找到了 ,配置項(xiàng)

 dev: {

    // Paths
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {},

    // Various Dev Server settings
    host: 'localhost', // can be overwritten by process.env.HOST
    port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
    autoOpenBrowser: false,
    errorOverlay: true,
    notifyOnErrors: false, // 
    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-

    
    /**
     * Source Maps
     */

    // https://webpack.js.org/configuration/devtool/#development
    devtool: 'eval-source-map',

把notifyOnErrors 設(shè)為 false 就行了

2018年8月11日 18:49