Skip to content

Commit

Permalink
fix(tools): next@9.3, build in sass support [#94]
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapegnik committed Mar 21, 2020
1 parent dc3137c commit f4cff4f
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 1,681 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ deploy-dev-from-local:

update:
npm run fetch-data

build-size:
npm run size
20 changes: 1 addition & 19 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
const withPlugins = require('next-compose-plugins');
const fonts = require('next-fonts');
const sass = require('@zeit/next-sass');
const css = require('@zeit/next-css');
const bundleAnalyzer = require('@zeit/next-bundle-analyzer');
// eslint-disable-next-line import/no-extraneous-dependencies
const webpack = require('webpack');
const GenerateJsonPlugin = require('generate-json-webpack-plugin');
const envCi = require('env-ci');

const packageJson = require('./package.json');
const { definePlugin, sassLoaderOptions } = require('./utils/webpack-plugins');
const { definePlugin } = require('./utils/webpack-plugins');
const { VALID_LOCALES } = require('./constants');
const ENV = require('./utils/env');

Expand All @@ -19,10 +16,6 @@ const { branch, commit } = envCi();
const { version } = packageJson;

const nextConfig = {
experimental: {
// https://github.com/zeit/next.js/issues/7949#issuecomment-524929448
granularChunks: true,
},
webpack(config) {
config.plugins.push(
...[
Expand All @@ -41,17 +34,6 @@ const nextConfig = {
};

const plugins = [
[fonts, { enableSvg: true }],

css,

[
sass,
{
sassLoaderOptions,
},
],

[
bundleAnalyzer,
{
Expand Down
Loading

0 comments on commit f4cff4f

Please sign in to comment.