Closed meshakeeb closed 3 years ago
@moyus did you plan to update your extension?
Is there any bug with Laravel Mix 6?
@moyus it works for me but I need to use --force
to install your extension
I will fix it tonight, hang on there!
Its successful to compile other file, but no nunjuck file get compiled here, I have followed the configuration from the repo but it still doesn't work for me, and I have tried the repo test folder and the result is the same, files aren't compiled.
Here my config file
//> webpack.mix.js
let mix = require('laravel-mix');
require('laravel-mix-nunjucks');
mix.njk('src/views/', 'views/', {
ext: '.html',
block: 'konten',
marked: null,
watch: true,
manageEnv: (nunjucks) => {},
})
mix.postCss('src/css/style.css', 'lemonflex.css', [
require('postcss-import'),
require('tailwindcss/nesting')('postcss-nested'),
require('tailwindcss')({
mode: 'jit',
content: [
'./src/**/*.{html,js}',
'./dist/**/*.{html,js}'
],
theme: {
extend: {
fontFamily: {
'sans': ['Noto Sans', 'Heebo', 'sans-serif']
},
},
},
}),
require('autoprefixer'),
])
mix.js('src/main.js', 'lemonflex.js')
mix.options({
fileLoaderDirs: {
fonts: ''
},
})
.disableNotifications()
.setPublicPath("dist");
is someone know why it haven to me? btw, I just updated Node.js to the latest version before installing this ext. (v16.13.2 => v16.14.2).
@lemonsprites please check whether nunjuck files have been compiled into your output folder, they may not show up in the console but do have been compiled.
Hey thanks for the reply, @moyus . Yeah you right i found it, but it compiled when i watch the file (npx mix watch
), and its not compiled when i run for single compile (npx mix
). :smiley:
@moyus I got the same issue as @lemonsprites .
When I run npm run mix
or npm run mix --production
, the Nunjucks files will not compile.
When I run npm run mix
, the files will compile as expected.
Running version 1.1.0
I will update a new version to fix this problem soon, hang on there!
@lemonsprites I have published a beta version laravel-mix-nunjucks@1.2.0-beta.1
, could you please help me test whether it works now?
thanks @moyus , its work properly, and now i can see the compiled file in list its mean a lot for me.😆
Hi,
The files are not compiling if a partial is change. Can you please look into this.
Thanks in advance and thanks for great extension