mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-579] - move license check in webpack (#1859)
* move license check in webpack * fix exclusion check header * different headers
This commit is contained in:
committed by
Eugenio Romano
parent
774017ac62
commit
80d67212b7
@@ -29,6 +29,13 @@ module.exports = {
|
||||
'vendor': './app/vendor.ts',
|
||||
'app': './app/main.ts'
|
||||
},
|
||||
|
||||
resolveLoader: {
|
||||
alias: {
|
||||
"license-check": path.resolve(__dirname, "./loaders/license-check")
|
||||
}
|
||||
},
|
||||
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
@@ -84,6 +91,17 @@ module.exports = {
|
||||
{
|
||||
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
||||
loader: 'file-loader?name=assets/[name].[hash].[ext]'
|
||||
},
|
||||
{
|
||||
enforce: 'pre',
|
||||
test: /\.ts$/,
|
||||
loader: 'license-check',
|
||||
include: helpers.root('app'),
|
||||
options: {
|
||||
emitErrors: true,
|
||||
licenseFile: path.resolve(__dirname, '../assets/license_header.txt')
|
||||
},
|
||||
exclude: [/node_modules/, /bundles/, /dist/, /demo/],
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Reference in New Issue
Block a user