Browse Source

BI-98719 fix: 【5.1.20_release发散】本地工程启动页面空白

es6
dailer 3 years ago
parent
commit
817fc60b83
  1. 1
      webpack/dirs.js
  2. 2
      webpack/webpack.common.js

1
webpack/dirs.js

@ -5,6 +5,7 @@ module.exports = {
PRIVATE: path.resolve(__dirname, "../private"),
BABEL_CONFIG: path.resolve(__dirname, "../babel.config.js"),
TYPESCRIPT: path.resolve(__dirname, "../typescript"),
ROUTER: path.resolve(__dirname, "../src/router"),
SRC: path.resolve(__dirname, "../src"),
DEMO: path.resolve(__dirname, "../demo"),
PUBLIC: path.resolve(__dirname, "../public"),

2
webpack/webpack.common.js

@ -38,7 +38,7 @@ module.exports = {
rules: [
{
test: /\.(js|ts)$/,
include: [dirs.NODE_MODULES, dirs.PRIVATE, dirs.TYPESCRIPT],
include: [dirs.NODE_MODULES, dirs.PRIVATE, dirs.TYPESCRIPT, dirs.ROUTER],
exclude: /node_modules(\/|\\)core-js/,
use: [
{

Loading…
Cancel
Save