Webpack: Difference between revisions
From Tweeki
Created page with "=== Using Webpack to customize the styles === npm install npm run prod" |
|||
| Line 1: | Line 1: | ||
=== Using Webpack to customize the styles === | === Using Webpack to customize the styles === | ||
Install webpack dependencies | |||
npm install | npm install | ||
Create your customized scripts and styles | |||
mv resources/scripts/example.custom.js resources/scripts/custom.js | |||
mv resources/styles/example.custom.scss resources/styles/custom.scss | |||
Create customized files | |||
npm run prod | npm run prod | ||
Tell MediaWiki to use the custom files with this line in <code>LocalSettings.php</code> | |||
Revision as of 11:52, 19 January 2020
Using Webpack to customize the styles
Install webpack dependencies
npm install
Create your customized scripts and styles
mv resources/scripts/example.custom.js resources/scripts/custom.js mv resources/styles/example.custom.scss resources/styles/custom.scss
Create customized files
npm run prod
Tell MediaWiki to use the custom files with this line in LocalSettings.php