@commercetools-frontend/mc-scripts 21.6.0 → 21.7.0

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.
@@ -40,12 +40,8 @@ const execute = async () => {
40
40
 
41
41
  fs.writeFileSync(paths.appIndexHtml, html, {
42
42
  encoding: 'utf8'
43
- }); // TODO: allow to pass additional config options.
44
- // * `define`
45
- // * `plugins`
46
-
43
+ });
47
44
  await build({
48
- configFile: false,
49
45
  root: paths.appRoot,
50
46
  define: {
51
47
  'process.env.DEBUG': JSON.stringify(false),
@@ -104,12 +104,8 @@ const execute = async () => {
104
104
 
105
105
  fs.writeFileSync(paths.appIndexHtml, html, {
106
106
  encoding: 'utf8'
107
- }); // TODO: allow to pass additional config options.
108
- // * `define`
109
- // * `plugins`
110
-
107
+ });
111
108
  const server = await createServer({
112
- configFile: false,
113
109
  root: paths.appRoot,
114
110
  define: {
115
111
  'process.env.DEBUG': JSON.stringify(false),
@@ -57,14 +57,12 @@ module.exports = ({
57
57
  https: false,
58
58
  port,
59
59
 
60
- // Enable HTTPS if the HTTPS environment variable is set to 'true'
61
- // `proxy` is run between `before` and `after` `webpack-dev-server` hooks
62
60
  setupMiddlewares(middlewares, devServer) {
63
61
  if (!devServer) {
64
62
  throw new Error('webpack-dev-server is not defined');
65
63
  }
66
64
 
67
- middlewares.push(createMcDevAuthenticationMiddleware(applicationConfig));
65
+ devServer.app.use(createMcDevAuthenticationMiddleware(applicationConfig));
68
66
  return middlewares;
69
67
  }
70
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/mc-scripts",
3
- "version": "21.6.0",
3
+ "version": "21.7.0",
4
4
  "description": "Configuration and scripts for developing a MC application",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -29,12 +29,12 @@
29
29
  "@babel/core": "^7.17.9",
30
30
  "@babel/runtime": "^7.17.9",
31
31
  "@babel/runtime-corejs3": "^7.17.9",
32
- "@commercetools-frontend/application-config": "21.6.0",
32
+ "@commercetools-frontend/application-config": "21.7.0",
33
33
  "@commercetools-frontend/assets": "21.0.0",
34
34
  "@commercetools-frontend/babel-preset-mc-app": "21.3.4",
35
35
  "@commercetools-frontend/constants": "21.3.4",
36
- "@commercetools-frontend/mc-dev-authentication": "21.6.0",
37
- "@commercetools-frontend/mc-html-template": "21.6.0",
36
+ "@commercetools-frontend/mc-dev-authentication": "21.7.0",
37
+ "@commercetools-frontend/mc-html-template": "21.7.0",
38
38
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
39
39
  "@rollup/plugin-graphql": "1.1.0",
40
40
  "@svgr/webpack": "6.2.1",