mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
removed node env variable
This commit is contained in:
@@ -6,20 +6,22 @@ const {
|
||||
buildRoot
|
||||
} = require('./helpers');
|
||||
|
||||
module.exports = {
|
||||
entry: buildRoot('./main.browser.ts'),
|
||||
output: {
|
||||
filename: 'client.js'
|
||||
},
|
||||
target: 'web',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: buildRoot('./index.html'),
|
||||
output: projectRoot('dist'),
|
||||
inject: 'head'
|
||||
}),
|
||||
new ScriptExtPlugin({
|
||||
defaultAttribute: 'defer'
|
||||
})
|
||||
]
|
||||
};
|
||||
module.exports = (env) => {
|
||||
return {
|
||||
entry: buildRoot('./main.browser.ts', env),
|
||||
output: {
|
||||
filename: 'client.js'
|
||||
},
|
||||
target: 'web',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: buildRoot('./index.html', env),
|
||||
output: projectRoot('dist'),
|
||||
inject: 'head'
|
||||
}),
|
||||
new ScriptExtPlugin({
|
||||
defaultAttribute: 'defer'
|
||||
})
|
||||
]
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user