We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2bc7f commit 487a4c3Copy full SHA for 487a4c3
nova.mix.js
@@ -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