Advertisement
Guest User

Untitled

a guest
Jul 13th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const webpack = require('webpack')
  2. const path = require('path')
  3. const withStylus = require('@zeit/next-stylus')
  4.  
  5. require('dotenv').config();
  6.  
  7. module.exports = withStylus({
  8.     webpack: (config) => {
  9.         config.plugins.push(
  10.             new webpack.DefinePlugin({
  11.                 'API_URL': JSON.stringify(process.env.API_URL)
  12.             })
  13.         );
  14.         return config;
  15.     },
  16.     stylusLoaderOptions: {
  17.         import: path.resolve('styles/common.styl'),
  18.     },
  19. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement