webpack.mix.js 2.51 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
  })
34
  .less(
35
    "resources/less/metager/pages/beitritt.less",
36
    "public/css/beitritt.css", {
37 38 39
      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 50
      "resources/js/lib/jquery.js",
      "resources/js/lib/jquery-ui.min.js",
      "resources/js/lib/bootstrap.js",
      "resources/js/lib/iframeResizer.min.js",
      "resources/js/lib/md5.js"
51 52 53 54 55
    ],
    "public/js/lib.js"
  )
  .babel(
    [
56 57
      "resources/js/scriptStartPage.js",
      "resources/js/result-saver.js"
58 59 60 61 62
    ],
    "public/js/scriptStartPage.js"
  )
  .babel(
    [
63 64 65
      "resources/js/scriptResultPage.js",
      "resources/js/result-saver.js",
      "resources/js/translations.js"
66 67 68
    ],
    "public/js/scriptResultPage.js"
  )
69 70 71 72
  .babel("resources/js/searchbar.js", "public/js/searchbar.js")
  .babel("resources/js/focus-creator.js", "public/js/focus-creator.js")
  .babel("resources/js/focus-creator.js", "public/js/focus-creator.js")
  .babel("resources/js/editLanguage.js", "public/js/editLanguage.js")
73
  .babel("resources/js/bitpay.js", "public/js/bitpay.js")
Dominik Hebeler's avatar
Dominik Hebeler committed
74
  // utility
75
  .babel(
76
    ["resources/js/utility.js", "resources/js/translations.js"],
77 78
    "public/js/utility.js"
  )
79 80
  .babel("resources/js/widgets.js", "public/js/widgets.js")
  .babel("resources/js/scriptJoinPage.js", "public/js/scriptJoinPage.js")
81
  // source maps
82
  .sourceMaps(false, "inline-source-map")
83
  // versioning
84
  .version();