Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
bbd109e1
Commit
bbd109e1
authored
May 29, 2020
by
Chris Beer
Browse files
Options
Downloads
Patches
Plain Diff
Try something to appease the build..
parent
6c8b94d5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
babel.config.js
+2
-2
2 additions, 2 deletions
babel.config.js
webpack.config.js
+6
-4
6 additions, 4 deletions
webpack.config.js
with
8 additions
and
6 deletions
babel.config.js
+
2
−
2
View file @
bbd109e1
...
@@ -85,8 +85,8 @@ module.exports = function (api) {
...
@@ -85,8 +85,8 @@ module.exports = function (api) {
],
],
},
},
],
],
'
react-hot-loader/babel
'
,
isDevelopmentEnv
&&
'
react-hot-loader/babel
'
,
];
]
.
filter
(
Boolean
)
;
return
{
return
{
plugins
,
plugins
,
...
...
This diff is collapsed.
Click to expand it.
webpack.config.js
+
6
−
4
View file @
bbd109e1
...
@@ -3,7 +3,8 @@ const webpack = require('webpack');
...
@@ -3,7 +3,8 @@ const webpack = require('webpack');
const
TerserPlugin
=
require
(
'
terser-webpack-plugin
'
);
const
TerserPlugin
=
require
(
'
terser-webpack-plugin
'
);
const
paths
=
require
(
'
./config/paths
'
);
const
paths
=
require
(
'
./config/paths
'
);
const
baseConfig
=
{
/** */
const
baseConfig
=
mode
=>
({
entry
:
[
'
react-hot-loader/patch
'
,
'
./src/polyfills.js
'
,
'
./src/index.js
'
],
entry
:
[
'
react-hot-loader/patch
'
,
'
./src/polyfills.js
'
,
'
./src/index.js
'
],
module
:
{
module
:
{
rules
:
[
rules
:
[
...
@@ -15,6 +16,7 @@ const baseConfig = {
...
@@ -15,6 +16,7 @@ const baseConfig = {
cacheCompression
:
true
,
cacheCompression
:
true
,
cacheDirectory
:
true
,
cacheDirectory
:
true
,
compact
:
true
,
compact
:
true
,
envName
:
mode
,
},
},
test
:
/
\.(
js|mjs|jsx
)
$/
,
test
:
/
\.(
js|mjs|jsx
)
$/
,
},
},
...
@@ -45,14 +47,14 @@ const baseConfig = {
...
@@ -45,14 +47,14 @@ const baseConfig = {
}),
}),
],
],
resolve
:
{
extensions
:
[
'
.js
'
]
},
resolve
:
{
extensions
:
[
'
.js
'
]
},
};
}
)
;
module
.
exports
=
(
env
,
options
)
=>
{
module
.
exports
=
(
env
,
options
)
=>
{
const
isProduction
=
options
.
mode
===
'
production
'
;
const
isProduction
=
options
.
mode
===
'
production
'
;
if
(
isProduction
)
{
if
(
isProduction
)
{
return
{
return
{
...
baseConfig
,
...
baseConfig
(
options
.
mode
)
,
devtool
:
'
source-map
'
,
devtool
:
'
source-map
'
,
mode
:
'
production
'
,
mode
:
'
production
'
,
plugins
:
[
plugins
:
[
...
@@ -65,7 +67,7 @@ module.exports = (env, options) => {
...
@@ -65,7 +67,7 @@ module.exports = (env, options) => {
}
}
return
{
return
{
...
baseConfig
,
...
baseConfig
(
options
.
mode
)
,
devServer
:
{
devServer
:
{
contentBase
:
'
./__tests__/integration/mirador
'
,
contentBase
:
'
./__tests__/integration/mirador
'
,
hot
:
true
,
hot
:
true
,
...
...
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