Turbolinks jquery

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Next, it defines a gulp watch task that watches specific files in the project for changes, and then runs the gulp webpack command when a change is detected. This actually took a little tweaking, because my source and output directories were both app/assets/javascripts . The first go-around I ended up with an infinite loop as compiling the bundle would cause the watch task to fire again and again and again. I eventually managed to find the "!app/assets/javascripts/" which allowed me to exclude a path from the watched files. That restored sanity.

Turbolinks jquery

turbolinks jquery

Media:

turbolinks jqueryturbolinks jqueryturbolinks jqueryturbolinks jqueryturbolinks jquery