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

Cleanup webpack js/css globs

parent fe860af0
No related merge requests found
......@@ -20,10 +20,10 @@ function hasArg(arg) {
var SRC_PATH = __dirname + '/frontend';
var BUILD_PATH = __dirname + '/resources/frontend_client';
// All JS files except dist and test
var JS_SRC = glob.sync(SRC_PATH + '/app/**/*.js', { ignore: SRC_PATH + '/app/dist/**/*.js' });
// All CSS files in app/css and app/components
var CSS_SRC = glob.sync(SRC_PATH + '/app/css/**/*.css').concat(glob.sync(SRC_PATH + '/app/components/**/*.css'));
// All JS files in frontend/app
var JS_SRC = glob.sync(SRC_PATH + '/app/**/*.js');
// All CSS files in frontend/app
var CSS_SRC = glob.sync(SRC_PATH + '/app/**/*.css');
// Need to scan the CSS files for variable and custom media used across files
// NOTE: this requires "webpack -w" (watch mode) to be restarted when variables change :(
......
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