strapi/fileTransformer.js
2019-03-06 09:54:29 +01:00

8 lines
184 B
JavaScript

const path = require('path');
module.exports = {
process(src, filename, config, options) {
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';';
},
};