exploRUG component setup
This commit is contained in:
25
web-dev-server.config.js
Normal file
25
web-dev-server.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2021 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
import {legacyPlugin} from '@web/dev-server-legacy';
|
||||
|
||||
const mode = process.env.MODE || 'dev';
|
||||
if (!['dev', 'prod'].includes(mode)) {
|
||||
throw new Error(`MODE must be "dev" or "prod", was "${mode}"`);
|
||||
}
|
||||
|
||||
export default {
|
||||
nodeResolve: {exportConditions: mode === 'dev' ? ['development'] : []},
|
||||
preserveSymlinks: true,
|
||||
plugins: [
|
||||
legacyPlugin({
|
||||
polyfills: {
|
||||
// Manually imported in index.html file
|
||||
webcomponents: false,
|
||||
},
|
||||
}),
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user