Add turbolinks
This commit is contained in:
parent
d2858c6315
commit
51595b6c6d
4 changed files with 15 additions and 5 deletions
|
@ -12,12 +12,13 @@ Encore
|
|||
.configureLoaderRule('css', loaderRule => {
|
||||
loaderRule.test = /\.(css|p(ost)?css)$/
|
||||
})
|
||||
.enableSourceMaps(!Encore.isProduction())
|
||||
|
||||
if (Encore.isProduction()) {
|
||||
Encore
|
||||
.enableVersioning()
|
||||
.addPlugin(new PurgecssPlugin(purgecssConfig))
|
||||
} else {
|
||||
Encore.enableSourceMaps()
|
||||
}
|
||||
|
||||
module.exports = Encore.getWebpackConfig()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue