Skip to content

Commit

Permalink
refactor: disabled sfui core plugin (vuestorefront#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Kwiatkowski authored Mar 25, 2022
1 parent ec19778 commit 1459af8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/theme/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import config from './config.js';
import middleware from './middleware.config';
import { getRoutes } from './routes';

const GoogleFontsPlugin = require("@beyonk/google-fonts-webpack-plugin")
const GoogleFontsPlugin = require('@beyonk/google-fonts-webpack-plugin');

const {
integrations: {
Expand Down Expand Up @@ -83,6 +83,7 @@ export default () => {
},
// selectively disabling certain @vue-storefront/core plugins for migration
context: false,
sfui: false,
}],
['~/modules/magento', {
i18n: {
Expand Down Expand Up @@ -191,8 +192,9 @@ export default () => {
extractCSS: true,
optimizeCSS: true,
parallel: true,
extend(cfg, ctx) {
cfg.devtool = 'source-map'
extend(cfg) {
// eslint-disable-next-line no-param-reassign
cfg.devtool = 'source-map';
},
plugins: [
new webpack.DefinePlugin({
Expand All @@ -204,19 +206,20 @@ export default () => {
}),
new GoogleFontsPlugin({
fonts: [
{ family: "Raleway", variants: ["300", "400", "500", "600", "700", "400italic"], display: "swap" },
{ family: "Roboto", variants: ["300", "400", "500", "700", "300italic", "400italic"], display: "swap" },
{ family: 'Raleway', variants: ['300', '400', '500', '600', '700', '400italic'], display: 'swap' },
{ family: 'Roboto', variants: ['300', '400', '500', '700', '300italic', '400italic'], display: 'swap' },
],
name: 'fonts',
filename: 'fonts.css',
path: 'assets/fonts/',
local: true,
formats: ["eot", "woff", "woff2", "ttf", "svg"],
formats: ['eot', 'woff', 'woff2', 'ttf', 'svg'],
apiUrl: 'https://google-webfonts-helper.herokuapp.com/api/fonts',
})
}),
],
transpile: [
'vee-validate',
/^@storefront-ui/,
],
},
plugins: [
Expand Down

0 comments on commit 1459af8

Please sign in to comment.