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
41c4f9ce
Commit
41c4f9ce
authored
Sep 11, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nodeps webpack config to create chunks in the right place
parent
bd67dc3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
29 deletions
+5
-29
webpack.common.js
webpack.common.js
+5
-25
webpack.nodeps.js
webpack.nodeps.js
+0
-1
webpack.prod.js
webpack.prod.js
+0
-3
No files found.
webpack.common.js
View file @
41c4f9ce
...
...
@@ -5,6 +5,11 @@ const path = require('path');
const
webpack
=
require
(
'
webpack
'
);
const
config
=
{
output
:
{
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
// Output path for generated bundles
publicPath
:
'
/dist/
'
,
// URL base path for all assets
chunkFilename
:
'
[name].js
'
},
entry
:
path
.
resolve
(
__dirname
,
'
src/converse.js
'
),
externals
:
[{
"
window
"
:
"
window
"
...
...
@@ -148,36 +153,11 @@ function parameterize () {
const
type
=
minimist
(
process
.
argv
.
slice
(
2
)).
type
;
const
mode
=
minimist
(
process
.
argv
.
slice
(
2
)).
mode
;
const
lang
=
minimist
(
process
.
argv
.
slice
(
2
)).
lang
;
if
(
type
===
'
headless
'
)
{
console
.
log
(
"
Making a headless build
"
);
config
.
entry
=
"
@converse/headless/headless.js
"
;
config
.
output
.
filename
=
'
converse-headless.js
'
;
}
if
(
type
===
'
nodeps
'
)
{
console
.
log
(
"
Making a build without 3rd party dependencies
"
);
config
.
output
.
filename
=
'
converse-no-dependencies.js
'
;
config
.
externals
=
[{
"
backbone
"
:
"
backbone
"
,
"
backbone.nativeview
"
:
"
backbone.nativeview
"
,
"
backbone.vdomview
"
:
"
backbone.vdomview
"
,
"
backbone.browserStorage
"
:
"
backbone.browserStorage
"
,
"
backbone.overview
"
:
"
backbone.overview
"
,
"
es6-promise
"
:
"
es6-promise
"
,
"
lodash
"
:
"
lodash
"
,
"
lodash.converter
"
:
"
lodash.converter
"
,
"
lodash.noconflict
"
:
"
lodash.noconflict
"
,
"
strophe
"
:
"
strophe
"
,
"
window
"
:
"
window
"
}];
}
if
(
mode
===
'
production
'
)
{
console
.
log
(
"
Making a production build
"
);
const
fn
=
config
.
output
.
filename
;
config
.
output
.
filename
=
`
${
fn
.
replace
(
/
\.
js$/
,
''
)}
.min.js`
;
}
}
parameterize
();
...
...
webpack.nodeps.js
View file @
41c4f9ce
...
...
@@ -55,7 +55,6 @@ module.exports = merge(common, {
"
es6-promise
"
:
"
es6-promise
"
,
"
formdata-polyfill
"
:
"
formdata-polyfill
"
,
"
lodash
"
:
"
lodash
"
,
"
lodash.converter
"
:
"
lodash.converter
"
,
"
lodash.noconflict
"
:
"
lodash.noconflict
"
,
"
strophe
"
:
"
strophe
"
,
"
window
"
:
"
window
"
,
...
...
webpack.prod.js
View file @
41c4f9ce
...
...
@@ -6,10 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module
.
exports
=
merge
(
common
,
{
output
:
{
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
// Output path for generated bundles
publicPath
:
'
/dist/
'
,
// URL base path for all assets
filename
:
'
converse.min.js
'
,
chunkFilename
:
'
[name].js
'
},
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'
../dist/converse.min.css
'
})
...
...
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