Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sascha Herzinger
AdaCharts
Commits
105338d9
Commit
105338d9
authored
Jan 23, 2019
by
Sascha Herzinger
Browse files
fixed
#1
Name a file as version.min.js (ideally deploy to webjars)
parent
3e152dc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
webpack.config.js
View file @
105338d9
const
webpack
=
require
(
'
webpack
'
);
const
path
=
require
(
'
path
'
);
const
commitHash
=
require
(
'
child_process
'
)
.
execSync
(
'
git rev-parse --short HEAD
'
)
.
toString
()
.
trim
();
module
.
exports
=
{
module
.
exports
=
(
env
,
argv
)
=>
(
{
entry
:
'
./src/index.js
'
,
output
:
{
filename
:
'
ada-charts.js
'
,
filename
:
argv
.
mode
===
'
development
'
?
'
ada-charts.js
'
:
`ada-charts-
${
commitHash
}
.min.js`
,
path
:
path
.
resolve
(
__dirname
,
'
lib
'
),
library
:
'
AdaCharts
'
,
libraryExport
:
'
default
'
,
...
...
@@ -45,4 +49,4 @@ module.exports = {
plugins
:
[
new
webpack
.
HotModuleReplacementPlugin
(),
],
};
}
)
;
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