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 10, 2020
1 parent 8184714 commit 1fd0c04
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 2,193 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 1fd0c04

Please sign in to comment.