Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Stud.IP
Commits
3ad35cce
Commit
3ad35cce
authored
1 month ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
use different build for different webpack envs to enable Vue DevTools in browser, fixes
#5652
Closes
#5652
Merge request
!4268
parent
41e17b3e
Branches
main
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
webpack.common.js
+0
-8
0 additions, 8 deletions
webpack.common.js
webpack.dev.js
+13
-0
13 additions, 0 deletions
webpack.dev.js
webpack.prod.js
+16
-1
16 additions, 1 deletion
webpack.prod.js
with
29 additions
and
9 deletions
webpack.common.js
+
0
−
8
View file @
3ad35cce
...
@@ -105,14 +105,6 @@ module.exports = {
...
@@ -105,14 +105,6 @@ module.exports = {
process
.
env
.
RSDOCTOR
&&
new
RsdoctorWebpackPlugin
({}),
process
.
env
.
RSDOCTOR
&&
new
RsdoctorWebpackPlugin
({}),
new
CopyPlugin
({
new
CopyPlugin
({
patterns
:
[
patterns
:
[
{
from
:
'
./node_modules/vue/dist/vue.global.prod.js
'
,
to
:
'
./javascripts/vue.global.prod.js
'
,
},
{
from
:
'
./node_modules/vuex/dist/vuex.global.prod.js
'
,
to
:
'
./javascripts/vuex.global.prod.js
'
,
},
{
{
from
:
'
./node_modules/@studip/pdfjs-studip
'
,
from
:
'
./node_modules/@studip/pdfjs-studip
'
,
to
:
'
./javascripts/pdfjs
'
to
:
'
./javascripts/pdfjs
'
...
...
This diff is collapsed.
Click to expand it.
webpack.dev.js
+
13
−
0
View file @
3ad35cce
const
webpack
=
require
(
'
webpack
'
);
const
webpack
=
require
(
'
webpack
'
);
const
{
merge
}
=
require
(
'
webpack-merge
'
);
const
{
merge
}
=
require
(
'
webpack-merge
'
);
const
common
=
require
(
'
./webpack.common.js
'
);
const
common
=
require
(
'
./webpack.common.js
'
);
const
CopyPlugin
=
require
(
'
copy-webpack-plugin
'
);
const
WebpackNotifierPlugin
=
require
(
'
webpack-notifier
'
);
const
WebpackNotifierPlugin
=
require
(
'
webpack-notifier
'
);
const
path
=
require
(
'
path
'
);
const
path
=
require
(
'
path
'
);
...
@@ -13,6 +14,18 @@ module.exports = merge(common, {
...
@@ -13,6 +14,18 @@ module.exports = merge(common, {
mode
:
'
development
'
,
mode
:
'
development
'
,
devtool
:
false
,
devtool
:
false
,
plugins
:
[
plugins
:
[
new
CopyPlugin
({
patterns
:
[
{
from
:
'
./node_modules/vue/dist/vue.global.js
'
,
to
:
'
./javascripts/vue.global.prod.js
'
,
},
{
from
:
'
./node_modules/vuex/dist/vuex.global.js
'
,
to
:
'
./javascripts/vuex.global.prod.js
'
,
},
],
}),
new
webpack
.
WatchIgnorePlugin
({
new
webpack
.
WatchIgnorePlugin
({
paths
:[
paths
:[
/
\.
d
\.[
cm
]
ts$/
/
\.
d
\.[
cm
]
ts$/
...
...
This diff is collapsed.
Click to expand it.
webpack.prod.js
+
16
−
1
View file @
3ad35cce
const
CssMinimizerPlugin
=
require
(
'
css-minimizer-webpack-plugin
'
)
const
CssMinimizerPlugin
=
require
(
'
css-minimizer-webpack-plugin
'
)
const
TerserPlugin
=
require
(
'
terser-webpack-plugin
'
)
const
TerserPlugin
=
require
(
'
terser-webpack-plugin
'
)
const
CopyPlugin
=
require
(
'
copy-webpack-plugin
'
);
const
common
=
require
(
'
./webpack.common.js
'
)
const
common
=
require
(
'
./webpack.common.js
'
)
const
webpack
=
require
(
'
webpack
'
)
const
webpack
=
require
(
'
webpack
'
)
const
{
merge
}
=
require
(
'
webpack-merge
'
)
const
{
merge
}
=
require
(
'
webpack-merge
'
)
...
@@ -27,5 +28,19 @@ module.exports = merge(common, {
...
@@ -27,5 +28,19 @@ module.exports = merge(common, {
},
},
}),
}),
]
]
}
},
plugins
:
[
new
CopyPlugin
({
patterns
:
[
{
from
:
'
./node_modules/vue/dist/vue.global.prod.js
'
,
to
:
'
./javascripts/vue.global.prod.js
'
,
},
{
from
:
'
./node_modules/vuex/dist/vuex.global.prod.js
'
,
to
:
'
./javascripts/vuex.global.prod.js
'
,
},
],
}),
]
})
})
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