1

We're building the google home local execution support, based on the sample project (https://github.com/actions-on-google/smart-home-local).

According to the guide, when we run the npm run build, there should be two sub directories web and node generated in dist. But after we did the build, there is only one bundle.js in the dist directory. Any idea about it?

Prisoner
  • 49,922
  • 7
  • 53
  • 105
trench
  • 11
  • 1

1 Answers1

0

When following the guide, you are recommended to use the local-home-app initiaizer:

npm init @google/local-home-app project-directory/ --bundler none # or other bundler options

This will setup your project using the correct configurations for various bundling tools so that it will generate two project types.

Additionally, the local home sample project has been updated to show how to generate both types of artifacts:

"build": "npm run build-web && npm run build-node",
"build-web": "webpack --config webpack.config.web.js",
"build-node": "webpack --config webpack.config.node.js",
Nick Felker
  • 11,536
  • 1
  • 21
  • 35