Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
5aa3b0f8
Commit
5aa3b0f8
authored
9 years ago
by
Tom Robinson
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup webpack js/css globs
parent
fe860af0
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webpack.config.js
+4
-4
4 additions, 4 deletions
webpack.config.js
with
4 additions
and
4 deletions
webpack.config.js
+
4
−
4
View file @
5aa3b0f8
...
...
@@ -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 a
nd
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
fronte
nd
/
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 :(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment