1.0.0 • Published 3 years ago

@knowter/local-client v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

JBook project from Udemy course

This in-progress project will mimick code.io with accepting user code and outputting code by using esbuild to process the code in the browser.

<<<<<<< HEAD Code found in main branch will contain either of the below branch data.

2 Main Development Branches (devconfig is primarily used)

Each branch has its own README to address any encountered issues.

cra uses create-react-app. This branch is not being actively developed on.

devconfig uses my

development environment.

Development environment will from my devconfig repo.

ERROR in Conflict: Multiple assets emit different content to the same filename index.html

In webpack.dev.js:

output: {
  publicPath: 'auto';
}
const startService = async () => {
  const service = await esbuild.startService({
    worker: true,
    wasmURL:
      'https://unpkg.com/esbuild-wasm@0.8.27/esbuild.wasm',
  });
};

Now, esbuild.wasm does not need to be added to public/.


GET http://localhost:3000/favicon.ico  [HTTP/1.1 404 Not Found 0ms]

In config/webpack.common.js add:

module.exports = {
  // ...,
  plugins: [
    new CopyWebpackPlugin({
      patterns: [
        {
          from: 'public/esbuild.wasm',
        },
      ],
    }),
  ],
};