Created
January 4, 2019 14:50
-
-
Save heleneshaikh/0951e598eca695d3d89b288a1c51dd8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Encore = require('@symfony/webpack-encore'); | |
Encore | |
.setOutputPath('public/build') | |
.setPublicPath('/build') | |
.setManifestKeyPrefix('') | |
.splitEntryChunks() | |
.addEntry('js/test', './public/assets/js/test.js')// JAVASCRIPT | |
.cleanupOutputBeforeBuild() | |
.enableBuildNotifications() | |
.enableSourceMaps(!Encore.isProduction()) | |
.enableVersioning(Encore.isProduction()) | |
.enableSassLoader() | |
.enableLessLoader() | |
.enableVueLoader() | |
.enablePostCssLoader() | |
.enableSingleRuntimeChunk() | |
; | |
module.exports = Encore.getWebpackConfig(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment