Skip to content

Commit 487a4c3

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 9a2bc7f commit 487a4c3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

nova.mix.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
class NovaExtension {
2+
name() {
3+
return 'nova-extension'
4+
}
5+
6+
register(name) {
7+
this.name = name
8+
}
9+
10+
webpackRules() {
11+
return {
12+
test: /\.(postcss)$/,
13+
use: [
14+
'vue-style-loader',
15+
{ loader: 'css-loader', options: { importLoaders: 1 } },
16+
'postcss-loader',
17+
],
18+
}
19+
}
20+
21+
webpackConfig(webpackConfig) {
22+
webpackConfig.externals = {
23+
vue: 'Vue',
24+
'laravel-nova': 'LaravelNova',
25+
'laravel-nova-ui': 'LaravelNovaUi',
26+
'laravel-nova-util': 'LaravelNovaUtil',
27+
}
28+
29+
webpackConfig.output = {
30+
uniqueName: this.name,
31+
}
32+
}
33+
}
34+
35+
module.exports = NovaExtension

0 commit comments

Comments
 (0)