Exporting module

This commit is contained in:
Walter Barbagallo 2017-03-10 12:20:20 +01:00
parent cc70ba9c44
commit ca02e409a2
3 changed files with 5 additions and 1 deletions

View File

@ -32732,3 +32732,5 @@ CodiceFiscale.CODICI_CATASTALI = {
]
]
}
module.exports = CodiceFiscale;

View File

@ -15,7 +15,7 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
'codice.fiscale.js',
'dist/codice.fiscale.js',
'tests/specs.js',
],

View File

@ -5,6 +5,8 @@ module.exports = {
'codice.fiscale': './codice.fiscale.js'
},
output: {
library: 'CodiceFiscale',
libraryTarget: 'window',
filename: '[name].js',
path: path.resolve(__dirname, 'dist')
}