framework-for-react 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -16,11 +16,11 @@ const APP_DIST = path.join(APP_PATH, '/dist');
16
16
  const dir_path = path.resolve(__dirname);
17
17
 
18
18
  const devMode = process.env.NODE_ENV !== 'production';
19
-
19
+ const entryPoint = 'default_entry';
20
20
  const webpackConfig = {
21
21
  devtool: devMode,
22
22
  entry: {
23
- app: [path.join(APP_SRC, '/main.js')],
23
+ [entryPoint]: [path.join(APP_SRC, '/main.js')],
24
24
  vendors: [
25
25
  '@babel/polyfill',
26
26
  'react',
@@ -116,6 +116,7 @@ const webpackConfig = {
116
116
  removeComments: true,
117
117
  collapseWhitespace: true
118
118
  },
119
+ chunks: [entryPoint],
119
120
  favicon: path.join(APP_SRC, '/asset/images/ico.ico'),
120
121
  template: path.join(APP_SRC, '/template/index.html')
121
122
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework-for-react",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "framework for react18",
5
5
  "main": "index.js",
6
6
  "scripts": {