UNPKG

snowpack-plugin-content-hash

Version:

A plugin for snowpack which will add a hash in the file name. The hash is based on the files content.

12 lines (10 loc) 557 B
import __SNOWPACK_ENV__ from '../__snowpack__/env.js'; import.meta.env = __SNOWPACK_ENV__; import React from '../web_modules/react.js'; import ReactDOM from '../web_modules/react-dom.js'; import App from './App.js'; ReactDOM.render( /*#__PURE__*/React.createElement(React.StrictMode, null, /*#__PURE__*/React.createElement(App, null)), document.getElementById('root')); // Hot Module Replacement (HMR) - Remove this snippet to remove HMR. // Learn more: https://www.snowpack.dev/#hot-module-replacement if (import.meta.hot) { import.meta.hot.accept(); }