/**
 * Created by aclinton on 11/9/16.
 */
var path = require('path');

module.exports = {
    context: __dirname + "/src",
    entry: "./index.js",

    output: {
        filename: "bundle.js",
        path: __dirname + "/build",
    },
    module: {
        loaders: [
            {test: /\.vue$/, loader: 'vue'},
            {test: /\.js$/, loader: 'babel', exclude: /node_modules/},
            {test: /\.woff(\d*)\??(\d*)$/, loader: "url-loader?limit=10000&mimetype=application/font-woff"},
            {test: /\.ttf\??(\d*)$/, loader: "file-loader"},
            {test: /\.eot\??(\d*)$/, loader: "file-loader"},
            {test: /\.svg\??(\d*)$/, loader: "file-loader"},
            {test: /\.scss$/, loader: "style!css!sass?sourceMap"},
            {
                test: '/materialize-css/bin/',
                loader: 'imports?jQuery=jquery,$=jquery,hammerjs'
            }
        ]
    },
    vue: {
        loaders: {
            sass: "vue-style-loader!css-loader!sass?indentedSyntax"
        }
    },
    resolve: {
        alias: {
            vue: 'vue/dist/vue.js'
        }
    }
}

@@ -241,24 +241,274 @@
   module: %7B%0A
+        preLoaders: %5B%0A            %7B%0A                test: /%5C.js$/, // include .js files%0A                exclude: /node_modules/, // exclude any and all files in the node_modules folder%0A                loader: %22jshint-loader%22%0A            %7D%0A        %5D,%0A
         load
@@ -1335,20 +1335,81 @@
 '%0A        %7D%0A
+    %7D,%0A    jshint: %7B%0A        esversion: 6,%0A        asi: true%0A
     %7D%0A%7D%0A

load the linter