ui
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
const path = require('path');
|
||||
const { Component } = require('./Component');
|
||||
|
||||
module.exports = class SetPublicPath extends Component {
|
||||
/**
|
||||
* @param {string} defaultPath
|
||||
*/
|
||||
register(defaultPath) {
|
||||
this.context.config.publicPath = path.normalize(defaultPath.replace(/\/$/, ''));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user