Move all files to old/astro/
This commit is contained in:
parent
b176f4d25e
commit
cdf77e8b5f
1340 changed files with 0 additions and 0 deletions
|
@ -1,24 +0,0 @@
|
|||
let Encore = require('@symfony/webpack-encore')
|
||||
let purgecssConfig = require('./purgecss.config')
|
||||
let PurgecssPlugin = require('purgecss-webpack-plugin')
|
||||
|
||||
Encore
|
||||
.disableSingleRuntimeChunk()
|
||||
.cleanupOutputBeforeBuild()
|
||||
.setOutputPath('source/build/')
|
||||
.setPublicPath('/build')
|
||||
.addEntry('app', './assets/js/app.js')
|
||||
.enablePostCssLoader()
|
||||
.configureLoaderRule('css', loaderRule => {
|
||||
loaderRule.test = /\.(css|p(ost)?css)$/
|
||||
})
|
||||
|
||||
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