-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds common-js dist binary webpack build
adds mirador3-e2e-tests package
- Loading branch information
1 parent
9add11e
commit 3e56ceb
Showing
27 changed files
with
25,824 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ coverage | |
# production | ||
lib | ||
build | ||
dist | ||
|
||
# misc | ||
.DS_Store | ||
|
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,4 +1,5 @@ | ||
build/ | ||
config/ | ||
dist/ | ||
scripts/ | ||
coverage/ |
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,50 @@ | ||
process.env.BABEL_ENV = 'production'; | ||
process.env.NODE_ENV = 'production'; | ||
|
||
require('./env'); | ||
const paths = require('./paths'); | ||
|
||
module.exports = { | ||
mode: 'production', | ||
entry: [paths.appDistIndexJs], | ||
output: { | ||
path: paths.appDist, | ||
filename: 'mirador.bundle.js', | ||
libraryTarget: 'umd', | ||
library: 'Mirador', | ||
libraryExport: 'default', | ||
}, | ||
resolve: { extensions: ['.js'] }, | ||
module: { | ||
rules: [ | ||
{ | ||
oneOf: [ | ||
{ | ||
test: /\.js?$/, | ||
exclude: /(node_modules)/, | ||
loader: 'babel-loader', | ||
}, | ||
{ | ||
test: /\.scss$/, | ||
use: [ | ||
'style-loader', // creates style nodes from JS strings | ||
'css-loader', // translates CSS into CommonJS | ||
'sass-loader', // compiles Sass to CSS, using Node Sass by default | ||
], | ||
}, | ||
{ | ||
loader: require.resolve('file-loader'), | ||
// Exclude `js` files to keep "css" loader working as it injects | ||
// it's runtime that would otherwise be processed through "file" loader. | ||
// Also exclude `html` and `json` extensions so they get processed | ||
// by webpacks internal loaders. | ||
exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/], | ||
options: { | ||
name: 'static/media/[name].[hash:8].[ext]', | ||
}, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}; |
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
Oops, something went wrong.