mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-08-05 22:37:45 +02:00
Initial commit for public repo
This commit is contained in:
17
webpack.config.js
Normal file
17
webpack.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
var Encore = require('@symfony/webpack-encore');
|
||||
|
||||
Encore
|
||||
.setOutputPath('docs')
|
||||
.setPublicPath('/')
|
||||
.addEntry('js/site', './assets/js/site.js')
|
||||
.addStyleEntry('css/site', './assets/css/site.css')
|
||||
.enablePostCssLoader()
|
||||
.configureBabel(function (babel) {
|
||||
babel.plugins.push(['prismjs', {
|
||||
"languages": ["php"],
|
||||
"css": false,
|
||||
}]);
|
||||
});
|
||||
;
|
||||
|
||||
module.exports = Encore.getWebpackConfig();
|
Reference in New Issue
Block a user