Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
ce3ba2a4
Commit
ce3ba2a4
authored
Jun 07, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linting errors
parent
0575ca48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
52 deletions
+48
-52
webpack.config.js
webpack.config.js
+48
-52
No files found.
webpack.config.js
View file @
ce3ba2a4
/*global path, __dirname, module */
/*global path, __dirname, module
, process
*/
'
use strict
'
const
minimist
=
require
(
'
minimist
'
);
const
path
=
require
(
'
path
'
);
...
...
@@ -120,17 +120,13 @@ const config = {
}
}
function
getCLIArgument
(
name
)
{
return
value
;
}
function
extend
(
o1
,
o2
)
{
for
(
let
i
in
o2
)
{
if
(
o2
.
hasOwnProperty
(
i
))
{
for
(
var
i
in
o2
)
{
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
o2
,
i
))
{
o1
[
i
]
=
o2
[
i
];
}
}
}
;
}
function
parameterize
()
{
const
type
=
minimist
(
process
.
argv
.
slice
(
2
)).
type
;
...
...
@@ -175,7 +171,7 @@ function parameterize () {
if
(
mode
===
'
production
'
)
{
console
.
log
(
"
Making a production build
"
);
le
t
fn
=
config
.
output
.
filename
;
cons
t
fn
=
config
.
output
.
filename
;
config
.
output
.
filename
=
`
${
fn
.
replace
(
/
\.
js$/
,
''
)}
.min.js`
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment