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
a276a050
Commit
a276a050
authored
May 10, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid `main.js` being generated in `dist`
when were generating only the CSS
parent
0e7d6481
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
package.json
package.json
+2
-2
webpack.config.js
webpack.config.js
+6
-3
No files found.
package.json
View file @
a276a050
...
...
@@ -11,12 +11,12 @@
"README.md"
],
"scripts"
:
{
"converse.css"
:
"webpack --type=css --mode=development"
,
"converse.css"
:
"webpack --type=css --mode=development
&& rm -r tmp
"
,
"converse.min.css"
:
"npm run converse.css && cleancss --skip-rebase dist/converse.css > dist/converse.min.css"
,
"converse.js"
:
"webpack --mode=development"
,
"converse.min.js"
:
"npm run converse.js && webpack --mode=production"
,
"converse-headless.js"
:
"webpack --mode=development --type=headless"
,
"converse-headless.min.js"
:
"npm run converse-headless.
cs
s && webpack --mode=production --type=headless"
,
"converse-headless.min.js"
:
"npm run converse-headless.
j
s && webpack --mode=production --type=headless"
,
"clean"
:
"rm -rf node_modules stamp-npm dist *.zip"
,
"build"
:
"npm run converse.min.css && npm run converse-headless.min.js && npm run converse.min.js"
,
"prepare"
:
"npm run build"
...
...
webpack.config.js
View file @
a276a050
...
...
@@ -15,7 +15,7 @@ const config = {
filename
:
'
converse.js
'
},
devtool
:
'
source-map
'
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'
./converse.css
'
})],
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'
.
./dist
/converse.css
'
})],
module
:
{
rules
:
[
{
...
...
@@ -60,7 +60,7 @@ const config = {
loader
:
'
file-loader
'
,
options
:
{
name
:
'
[path][name].[ext]
'
,
outputPath
:
'
./
'
outputPath
:
'
.
./dist
/
'
}
}
]
...
...
@@ -184,7 +184,10 @@ function parameterize () {
if
(
type
===
'
css
'
)
{
console
.
log
(
"
Building only CSS
"
);
config
.
entry
=
path
.
resolve
(
__dirname
,
'
sass/converse.scss
'
);
config
.
output
=
{};
config
.
output
=
{
path
:
path
.
resolve
(
__dirname
,
'
tmp
'
),
filename
:
'
css-builder.js
'
}
}
if
(
mode
===
'
production
'
)
{
...
...
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