This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/node_modules/next/dist/build/webpack-config.js b/node_modules/next/dist/build/webpack-config.js | |
| index 5fe4dd5..a13e97a 100644 | |
| --- a/node_modules/next/dist/build/webpack-config.js | |
| +++ b/node_modules/next/dist/build/webpack-config.js | |
| @@ -736,7 +736,7 @@ async function getBaseWebpackConfig(dir, { buildId , config , dev =false , isSer | |
| )) { | |
| return false; | |
| } | |
| - return /node_modules/.test(excludePath); | |
| + return /node_modules|tableau-react/.test(excludePath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const withPlugins = require('next-compose-plugins'); | |
| const withImages = require('next-images'); | |
| const path = require('path'); | |
| const withOffline = require('next-offline'); | |
| const withCSS = require('@zeit/next-css'); | |
| const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
| const withPurgeCss = require('next-purgecss'); | |
| const { | |
| PHASE_PRODUCTION_BUILD, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // npm install --save scrollreveal or install like you're used to doing it. | |
| // It doesn't work well if there are multiple instances of ScrollReveal, | |
| // so we have to create a module returning an instance: | |
| // file ScrollReveal.js: | |
| import ScrollReveal from 'scrollreveal' | |
| export default ScrollReveal() | |
| // Then in a component: | |
| import React from 'react' | |
| import sr from './ScrollReveal' |
Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.
All files were downloaded from https://cdnjs.com and named accordingly.
Output from ls command is stripped out (irrelevant stuff)
$ ls -lhS
566K Jan 4 22:03 angular2.min.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function slugify(text) | |
| { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |