base引用src改lib
This commit is contained in:
parent
dbb5ef20a4
commit
ca72121bd7
|
|
@ -122,7 +122,7 @@ function replaceT(str) {
|
||||||
function getWxsCode() {
|
function getWxsCode() {
|
||||||
const BASE_PATH = path.dirname(
|
const BASE_PATH = path.dirname(
|
||||||
require.resolve(
|
require.resolve(
|
||||||
`${process.cwd()}/node_modules/oak-frontend-base/src/platforms/wechatMp/i18n/wxs/wxs.js`
|
`${process.cwd()}/node_modules/oak-frontend-base/lib/platforms/wechatMp/i18n/wxs/wxs.js`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
const code = fs.readFileSync(path.join(BASE_PATH, '/wxs.js'), 'utf-8');
|
const code = fs.readFileSync(path.join(BASE_PATH, '/wxs.js'), 'utf-8');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue