Re-add Tailwind CSS
This commit is contained in:
parent
0401e039de
commit
fd37030d03
15 changed files with 10101 additions and 0 deletions
27
webpack.config.js
Normal file
27
webpack.config.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
let Encore = require('@symfony/webpack-encore')
|
||||
let path = require('path')
|
||||
|
||||
Encore
|
||||
.disableSingleRuntimeChunk()
|
||||
.cleanupOutputBeforeBuild()
|
||||
.setOutputPath('source/build/')
|
||||
.setPublicPath('/build')
|
||||
.setManifestKeyPrefix('build/')
|
||||
|
||||
.addEntry('app', '@/app.js')
|
||||
|
||||
.enablePostCssLoader()
|
||||
|
||||
.addAliases({
|
||||
'@': path.resolve(__dirname, 'assets', 'js'),
|
||||
styles: path.resolve(__dirname, 'assets', 'css')
|
||||
})
|
||||
|
||||
if (!Encore.isProduction()) {
|
||||
Encore.enableSourceMaps()
|
||||
}
|
||||
|
||||
process.env.NODE_ENV =
|
||||
process.env.NODE_ENV || Encore.isProduction() ? 'production' : 'development';
|
||||
|
||||
module.exports = Encore.getWebpackConfig()
|
Loading…
Add table
Add a link
Reference in a new issue