tree: 96861bcf16da7512998aeee427768388dd6b0920 [path history] [tgz]
  1. BUILD.bazel
  2. Makefile
  3. README.md
  4. html-webpack-inject-attributes-plugin.d.ts
  5. html_insert_nonce_attribute/
  6. index.bzl
  7. karma.common.ts
  8. karma.conf.ts
  9. karma_mocha_test/
  10. modules/
  11. package-lock.json
  12. package.json
  13. pulito/
  14. remove_css_imports_from_js/
  15. rollup.config.js
  16. sk_demo_page_server/
  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.