UNPKG

remix-nlux

Version:

Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.

32 lines (29 loc) 781 B
import {resolve} from 'path'; export const getSharedViteConfig = ( pathToRoot: string, requireTrustedScript: boolean = false, plugins: Array<any> = [], ) => { const getAbsolutePath = (path: string) => resolve(pathToRoot, path); return { plugins, define: { process: { env: { NLUX_DEBUG_ENABLED: 'true', }, }, }, server: { // Add header headers: requireTrustedScript ? { 'Content-Security-Policy': 'require-trusted-types-for \'script\';', } : {}, }, resolve: { alias: { '@shared': getAbsolutePath('packages/shared/src'), }, }, }; };