tree: e7477a59ad54dfbe2855206a0b0dad95e2a44857 [path history] [tgz]
  1. go/
  2. html_insert_nonce_attribute/
  3. karma_test/
  4. modules/
  5. pulito/
  6. sk_demo_page_server/
  7. BUILD.bazel
  8. html-webpack-inject-attributes-plugin.d.ts
  9. index.bzl
  10. karma.common.ts
  11. karma.conf.ts
  12. Makefile
  13. README.md
  14. rollup.config.js
  15. themes.scss
  16. ts_library.bzl
  17. tsconfig.json
  18. webpack.config.ts
infra-sk/README.md

This is the common set of custom elements used by Skia Infrastructure. It is built on common-sk and elements-sk using pulito

There is documentation for each element.

Use

To use this library you should add the following to your webpack config:

const { resolve } = require('path')

module.exports = (env, argv) => {
  let config = commonBuilder(env, argv, __dirname);
  config.resolve = config.resolve || {};
  config.resolve.modules = [resolve(__dirname, 'node_modules')];
  return config;
}

This change forces module resolution to happen only in the directory where the project's webpack.config.js sits, i.e. the node_modules directory under infra_sk will be ignored, which means that all dependencies for infra-sk have to exist in the projects package.json file.

Disclaimer

This is not an officially supported Google product.