-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
23 lines (21 loc) · 650 Bytes
/
Copy pathwebpack.mix.js
File metadata and controls
23 lines (21 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const config = require("./config");
const Telescope = require("./src/telescope/telescope");
const telescope = new Telescope();
telescope.generate();
let mix = require("laravel-mix");
mix.setPublicPath(config.folders.dist);
mix.setResourceRoot(".");
mix.options({
legacyNodePolyfills: false,
});
mix.webpackConfig({
resolve: { fallback: { http: false } },
output: {
filename: "js/[name].js",
chunkFilename: "js/chunks/[name].js",
},
});
mix.sass("src/scss/app.scss", "");
mix.js("src/javascript/app.js", "");
mix.copy("src/static", `${config.folders.dist}/static`);
mix.disableNotifications();