-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #695 from adithyaakrishna/feat/update-webpack
Updated Webpack Config Files & Add Citation File
- Loading branch information
Showing
6 changed files
with
70 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
cff-version: 1.2.0 | ||
title: '3Dmol.js: molecular visualization with WebGL' | ||
message: If you use 3Dmol.js, please cite our Bioinformatics paper | ||
type: software | ||
authors: | ||
- given-names: David | ||
family-names: Koes | ||
email: [email protected] | ||
affiliation: University of Pittsburgh | ||
orcid: 'https://orcid.org/0000-0002-6892-6614' | ||
- given-names: Nicholas | ||
family-names: Rego | ||
affiliation: University of Pittsburgh | ||
orcid: 'https://orcid.org/0000-0002-3164-6803' | ||
identifiers: | ||
- type: doi | ||
value: 10.1093/bioinformatics/btu829 | ||
repository-code: 'https://github.com/3dmol/3Dmol.js' | ||
url: 'https://3dmol.org/' | ||
abstract: >- | ||
3Dmol.js is a modern, object-oriented JavaScript library | ||
that uses the latest web technologies to provide | ||
interactive, hardware-accelerated three-dimensional | ||
representations of molecular data without the need to | ||
install browser plugins or Java. 3Dmol.js provides a full | ||
featured API for developers as well as a straightforward | ||
declarative interface that lets users easily share and | ||
embed molecular data in websites. | ||
license: BSD-3-Clause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
/* eslint-disable no-undef*/ | ||
|
||
const { merge } = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
|
||
module.exports = merge(common, { | ||
mode: 'development', | ||
devtool: 'inline-source-map', | ||
mode: 'development', | ||
devtool: 'inline-source-map', | ||
output: { | ||
filename: `[name].js`, | ||
} | ||
filename: '[name].js', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
/* eslint-disable no-undef*/ | ||
|
||
const { merge } = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
|
||
module.exports = merge(common, { | ||
mode: 'production', | ||
mode: "production", | ||
optimization: { | ||
usedExports: false, //essential for pulling in $3Dmol namespace | ||
usedExports: false, | ||
minimizer: [ | ||
new TerserPlugin({ | ||
parallel: true, | ||
terserOptions: { | ||
keep_classnames: true, | ||
compress: true, | ||
mangle: | ||
{ | ||
mangle: { | ||
reserved: ["MarchingCube"], | ||
} | ||
}, | ||
}, | ||
}), | ||
], | ||
}, | ||
output: { | ||
filename: `[name]-min.js`, | ||
} | ||
}, | ||
}); |