• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
2
3/** Use Hot Module replacement by adding --hmr to the start command */
4const hmr = process.argv.includes('--hmr');
5
6export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
7  open: true,
8  appIndex: 'web/index.html',
9  watch: !hmr,
10  nodeResolve: {
11    exportConditions: ['browser', 'development'],
12  },
13});
14