webpack.mix.js 2.21 KB
Newer Older
1
let mix = require("laravel-mix");
Dominik Hebeler's avatar
Dominik Hebeler committed
2

Karl Hasselbring's avatar
Karl Hasselbring committed
3 4 5 6 7 8 9 10 11 12 13
/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

14
mix
15 16 17 18 19
  /*
  @import "./font-awesome/fontawesome.less";
  @import "./font-awesome/solid.less";
  @import "./bootstrap/bootstrap.less";
  */
20
  // css
Dominik Hebeler's avatar
Dominik Hebeler committed
21
  .styles(["resources/css/noheader.css"], "public/css/noheader.css")
22
  .less("resources/less/metager/metager.less", "public/css/themes/metager.css", {
23 24
    strictMath: true
  })
25
  .less("resources/less/font-awesome/fontawesome.less", "public/css/fontawesome.css", {
26 27
    strictMath: true
  })
28
  .less("resources/less/font-awesome/solid.less", "public/css/fontawesome-solid.css", {
29 30
    strictMath: true
  })
31
  .less("resources/less/bootstrap/bootstrap.less", "public/css/bootstrap.css", {
32 33
    strictMath: true
  })
Dominik Hebeler's avatar
Dominik Hebeler committed
34 35 36 37 38 39
  .less(
    "resources/less/metager/pages/key.less",
    "public/css/key.css", {
      strictMath: true
    }
  )
40
  .less("resources/less/utility.less", "public/css/utility.css", {
41 42
    strictMath: true
  })
Dominik Hebeler's avatar
Dominik Hebeler committed
43
  // js
44 45
  .babel(
    [
46 47 48 49
      "resources/js/lib/jquery.js",
      "resources/js/lib/jquery-ui.min.js",
      "resources/js/lib/bootstrap.js",
      "resources/js/lib/md5.js"
50 51 52
    ],
    "public/js/lib.js"
  )
53 54 55 56 57 58
  .babel(
    [
      "resources/js/scriptSettings.js"
    ],
    "public/js/scriptSettings.js"
  )
59 60
  .babel(
    [
61 62 63
      "resources/js/scriptResultPage.js",
      "resources/js/result-saver.js",
      "resources/js/translations.js"
64 65 66
    ],
    "public/js/scriptResultPage.js"
  )
67
  .babel("resources/js/editLanguage.js", "public/js/editLanguage.js")
68
  .babel("resources/js/bitpay.js", "public/js/bitpay.js")
Dominik Hebeler's avatar
Dominik Hebeler committed
69
  // utility
70
  .babel(
71
    ["resources/js/utility.js", "resources/js/translations.js"],
72 73
    "public/js/utility.js"
  )
74 75
  .babel("resources/js/widgets.js", "public/js/widgets.js")
  .babel("resources/js/scriptJoinPage.js", "public/js/scriptJoinPage.js")
76
  // source maps
77
  .sourceMaps(false, "inline-source-map")
78
  // versioning
79
  .version();