Skip to content

Commit

Permalink
refactor: reaname output file to chunk hash & indent problem
Browse files Browse the repository at this point in the history
  • Loading branch information
zigsong committed Sep 2, 2021
1 parent c6761c6 commit 3e290b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

ReactDOM.render(<App />, document.getElementById("app"));
ReactDOM.render(<App />, document.getElementById('app'));
2 changes: 1 addition & 1 deletion src/pages/Loadable/Loadable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import loadable from "@loadable/component";

const SearchLoadable = loadable(() => import("../Search/Search"), {
fallback: <div>Loading...</div>
fallback: <div>Loading...</div>
})

export { SearchLoadable };
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
entry: './src/index.js',
resolve: { extensions: ['.js', '.jsx'] },
output: {
filename: '[name].js',
filename: '[name].[chunkhash].js',
path: path.join(__dirname, '/dist'),
clean: true,
},
Expand Down

0 comments on commit 3e290b2

Please sign in to comment.