mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
dependency upgrades, server and platform module updates, linting wip
This commit is contained in:
24
webpack/webpack.client.js
Normal file
24
webpack/webpack.client.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const ScriptExtPlugin = require('script-ext-html-webpack-plugin');
|
||||
|
||||
const {
|
||||
root
|
||||
} = require('./helpers');
|
||||
|
||||
module.exports = {
|
||||
entry: root('./src/main.browser.ts'),
|
||||
output: {
|
||||
filename: 'client.js'
|
||||
},
|
||||
target: 'web',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: root('./src/index.html'),
|
||||
output: root('dist'),
|
||||
inject: 'head'
|
||||
}),
|
||||
new ScriptExtPlugin({
|
||||
defaultAttribute: 'defer'
|
||||
})
|
||||
]
|
||||
};
|
Reference in New Issue
Block a user