blob: ed019cfea28dea2c1cea4a522090a80fe8f4f480 [file] [log] [blame]
const path = require('path');
// The addCommon function adds an alias for each of the
// well known libraries of custom elements and modules.
module.exports.addCommon = function(webpack_config) {
webpack_config.resolve = {
alias: {
// Keep these libraries at well known locations.
'skia-elements': path.resolve(__dirname, '..', 'ap', 'skia-elements'),
'common': path.resolve(__dirname, 'modules'),
},
};
return webpack_config;
}