Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save takahirohonda/d9b49baa32df2de8506a0ff7cd6e63c7 to your computer and use it in GitHub Desktop.
Save takahirohonda/d9b49baa32df2de8506a0ff7cd6e63c7 to your computer and use it in GitHub Desktop.
webpack-config-push-custom-font-sb.js
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = async ({ config }) => {
// fonts
config.plugins.push(
new CopyWebpackPlugin({patterns: [
{
from: path.resolve(__dirname, '../src/fonts/Lato'),
to: 'fonts/Lato'
},
]}),
);
return config;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment