PatrickJS / NG6-starter

:ng: An AngularJS Starter repo for AngularJS + ES6 + Webpack
https://angularclass.github.io/NG6-starter
Apache License 2.0
1.91k stars 1.35k forks source link

How to disable autoreload ? #164

Closed ramytamer closed 7 years ago

ramytamer commented 8 years ago

I know it's a dump question, but i couldn't manage to disable watching file so the tab reloads each time i save a file.

Thanks

pkishino commented 8 years ago

any good reason why you would want to do this?

ramytamer commented 8 years ago

I am using it on a pretty slow computer & i save every 2 seconds :sweat_smile: ; so i want to manually refresh the page

samithaf commented 8 years ago

Add this to BS config.

    snippetOptions: {
      rule: {
        match: /qqqqqqqqq/,
      },
    },
bmsdave commented 8 years ago

@ramytamer, the best way: turn off "CodeSync" in http://localhost:3001/sync-options.

also, you can remove hot-module

// Adds webpack HMR support. It act's like livereload,
// reloading page after webpack rebuilt modules.
// It also updates stylesheets and inline assets without page reloading.
new webpack.HotModuleReplacementPlugin()

just commented "new webpack.HotModuleReplacementPlugin()" in webpack.dev.config.js and " 'webpack-hot-middleware/client?reload=true'" in gulpfile

fesor commented 7 years ago

@ramytamer could I close this issue?

fesor commented 7 years ago

Closing this, feel free to ask here if you have any additional questions.