Skip to content

Commit

Permalink
Merge pull request #82 from beanlee/master
Browse files Browse the repository at this point in the history
构建速度优化,babel-loader 打开 cache,删除一小段冗余代码
  • Loading branch information
loveky authored Jan 15, 2021
2 parents 854cd4d + a9a008b commit 59cb563
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/rocketact-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rocketact-scripts",
"version": "1.10.3",
"version": "1.10.4",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 0 additions & 6 deletions packages/rocketact-scripts/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ export default (api: CoreAPI) => {
},
};

WebpackDevServer.addDevServerEntrypoints(
// @ts-ignore
webpackConfig,
devServerOptions
);

const expectedPort = process.env.PORT ? Number(process.env.PORT) : 3000;

detectPort(expectedPort, (err, availablePort) => {
Expand Down
1 change: 1 addition & 0 deletions packages/rocketact-scripts/src/config/webpack/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default (api: CoreAPI) => {
.loader(require.resolve("babel-loader"))
.options({
presets: [require.resolve("babel-preset-rocketact")],
cacheDirectory: true,
})
.end()
.end()
Expand Down

0 comments on commit 59cb563

Please sign in to comment.