
Module parse failed: /Users/Trav/Projects/Templates/sensible-react-starter/src/index.jsx Unexpected token (8:2) My stdout: > build /Users/Trav/Projects/Templates/sensible-react-starter I'm confused as to why my webpack configuration is seemingly unable to parse a jsx file. It is non-intuitive and very complex way.įor details and examples please see the pug-plugin site.Ĭonst path = require ( 'path' ) const PugPlugin = require ( 'pug-plugin' ) module. compile Pug files defined in the html-webpack-plugin using a pug-loader.compile Pug files defined in webpack entry using the pug-plugin.watching of changes in all dependencies.


No longer need to define scripts and styles in the webpack entry.All JS and CSS files will be extracted from their sources specified in Pug.Source scripts and styles should be specified directly in Pug.

The Pug file is the entry point for all scripts and styles.Output JS and CSS filenames whose source files are specified in the Pug template. Pug Plugin enable to use Pug files in webpack entry and generates HTML files that contain the hashed Instead of html-webpack-plugin recommended to use the pug-plugin. Since v2.8.0 the support of the html-webpack-plugin is DEPRECATED, because Pug has its own smarty and clever pug-plugin. P Use the how to use Pug with Vue and source of example.
