This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
108 lines (105 loc) · 2.91 KB
/
webpack.mix.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
const mix = require("laravel-mix");
const sass = require("node-sass");
const cssnano = require("cssnano");
const autoprefixer = require("autoprefixer");
const path = require("path");
/*
|--------------------------------------------------------------------------
| 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 your application, as well as bundling up your JS files.
|
*/
mix
.js("resources/assets/js/bootstrap.js", "public/js")
.js("resources/assets/js/app.js", "public/js")
.js("resources/assets/js/reliability.js", "public/js")
.js("resources/assets/js/autocomplete.js", "public/js")
.js("resources/assets/js/modernizr.js", "public/js")
.js("resources/assets/js/alerts.js", "public/js")
.js("resources/assets/js/getpdf.js", "public/js")
.ts("resources/assets/js/managerRegistration.ts", "public/js")
.ts(
"resources/assets/js/components/AssessmentPlan/AssessmentPlanRoot.tsx",
"public/js",
)
.ts(
"resources/assets/js/components/ApplicationReview/ApplicationReviewRoot.tsx",
"public/js",
)
.ts(
"resources/assets/js/components/ApplicationReview/ReviewApplicationsRoot.tsx",
"public/js",
)
.ts(
"resources/assets/js/components/JobBuilder/JobBuilderRoot.tsx",
"public/js",
)
.ts("resources/assets/js/components/WorkEnvFeaturesRoot.tsx", "public/js")
.ts(
"resources/assets/js/components/ApplicantSkills/SkillsWordCounter.tsx",
"public/js",
)
.ts("resources/assets/js/components/HRPortal/JobIndexHrPage.tsx", "public/js")
.ts(
"resources/assets/js/components/HRPortal/JobReviewHrPage.tsx",
"public/js",
)
.ts(
"resources/assets/js/components/HRPortal/JobSummaryActivityFeed.tsx",
"public/js",
)
.sass("resources/assets/sass/app.scss", "public/css", {
implementation: sass,
sassOptions: {
includePaths: ["node_modules/@fortawesome/fontawesome-free/scss"],
},
})
.options({
processCssUrls: false,
postCss: [
cssnano({
preset: [
"default",
{
discardComments: {
removeAll: true,
},
},
],
}),
],
})
.sass("resources/assets/sass/reliability.scss", "public/css", {
implementation: sass,
sassOptions: {
includePaths: ["node_modules/@fortawesome/fontawesome-free/scss"],
},
})
.options({
processCssUrls: false,
postCss: [
cssnano({
preset: [
"default",
{
discardComments: {
removeAll: true,
},
},
],
}),
],
});
mix.webpackConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "resources/assets/js"),
},
mainFields: ["browser", "main", "module"],
},
});
mix.version();