quasar

Форк
0
36 строк · 1.4 Кб
1
/**
2
 * Quasar App Extension index/runner script
3
 * (runs on each dev/build)
4
 *
5
 * Docs: https://quasar.dev/app-extensions/development-guide/index-api
6
 */
7

8
function extendConf (conf) {
9
  // register our boot file
10
  conf.boot.push('~quasar-app-extension-<%= name %>/src/boot/register.js')
11

12
  // make sure app extension files & ui package gets transpiled
13
  conf.build.transpileDependencies.push(/quasar-app-extension-<%= name %>[\\/]src/)
14

15
  // make sure the stylesheet goes through webpack to avoid SSR issues
16
  conf.css.push('~quasar-ui-<%= name %>/src/index.sass')
17
}
18

19
module.exports = function (api) {
20
  // Quasar compatibility check; you may need
21
  // hard dependencies, as in a minimum version of the "quasar"
22
  // package or a minimum version of "@quasar/app" CLI
23
  api.compatibleWith('quasar', '^1.1.1')
24
  api.compatibleWith('@quasar/app', '^2.0.0')
25

26
<% if (features.component) { %>
27
  // Uncomment the line below if you provide a JSON API for your component
28
  // api.registerDescribeApi('<%= componentName %>', '~quasar-ui-<%= name %>/src/components/<%= componentName %>.json')
29
<% } %><% if (features.directive) { %>
30
  // Uncomment the line below if you provide a JSON API for your directive
31
  // api.registerDescribeApi('<%= directiveName %>', '~quasar-ui-<%= name %>/src/directives/<%= directiveName %>.json')
32
<% } %>
33

34
  // We extend /quasar.conf.js
35
  api.extendQuasarConf(extendConf)
36
}
37

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.