Skip to content
Snippets Groups Projects
Commit 1cc2dd00 authored by Tom Robinson's avatar Tom Robinson
Browse files

Integrate eslint with webpack. Adds a couple seconds to initial build, but...

Integrate eslint with webpack. Adds a couple seconds to initial build, but negligible time to incremental (watch) builds
parent fcddc3e6
No related merge requests found
......@@ -28,7 +28,9 @@ import 'ace/mode-sql';
import 'ace/snippets/sql';
// react:
window.React = require('react');
import React from 'react';
window.React = React;
// misc:
window._ = require('underscore');
import _ from 'underscore';
window._ = _;
......@@ -45,9 +45,8 @@ module.exports = {
module: {
loaders: [
// JavaScript
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel', query: {
cacheDirectory: '.babel_cache'
}},
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel', query: { cacheDirectory: '.babel_cache' }},
{ test: /\.js$/, exclude: /node_modules/, loader: 'eslint' },
// CSS
{ test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap!cssnext-loader') }
// { test: /\.css$/, loader: 'style-loader!css-loader!cssnext-loader' }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment