Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const webpack = require('webpack')
- const path = require('path')
- const withStylus = require('@zeit/next-stylus')
- require('dotenv').config();
- module.exports = withStylus({
- webpack: (config) => {
- config.plugins.push(
- new webpack.DefinePlugin({
- 'API_URL': JSON.stringify(process.env.API_URL)
- })
- );
- return config;
- },
- stylusLoaderOptions: {
- import: path.resolve('styles/common.styl'),
- },
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement