Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparing pages, controllers and services.
- Loading branch information
Tomislav Fabeta
committed
Apr 27, 2019
1 parent
b1f1428
commit 6ceadb1
Showing
21 changed files
with
1,326 additions
and
391 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
const withTypescript = require('@zeit/next-typescript'); | ||
const path = require('path'); | ||
const withTM = require('next-transpile-modules'); | ||
const withPlugins = require('next-compose-plugins'); | ||
const withSass = require('@zeit/next-sass'); | ||
const withTypescript = require("@zeit/next-typescript"); | ||
const path = require("path"); | ||
const withTM = require("next-transpile-modules"); | ||
const withPlugins = require("next-compose-plugins"); | ||
const withSass = require("@zeit/next-sass"); | ||
|
||
module.exports = withPlugins([ | ||
[ | ||
withTM, | ||
{ | ||
transpileModules: ['@insurance/*', '@rentalcarsDev/*'], | ||
transpileModules: ["@snoutyfriend/storybook, @snoutyfriend/storybook/scss/all.scss"], | ||
}, | ||
], | ||
withTypescript({ | ||
useFileSystemPublicRoutes: false, | ||
webpack: function (config, { buildId, dev }) { | ||
const originalEntry = config.entry; | ||
[ | ||
withTypescript, | ||
{ | ||
useFileSystemPublicRoutes: false, | ||
webpack: function(config, { buildId, dev }) { | ||
const originalEntry = config.entry; | ||
|
||
config.resolve = { | ||
...config.resolve, | ||
...{ | ||
alias: { | ||
...config.resolve.alias, | ||
'@src': path.resolve(__dirname, 'pages'), | ||
} | ||
}, | ||
}; | ||
config.resolve = { | ||
...config.resolve, | ||
...{ | ||
alias: { | ||
...config.resolve.alias, | ||
"@src": path.resolve(__dirname, "pages"), | ||
}, | ||
}, | ||
}; | ||
|
||
return config; | ||
} | ||
}), | ||
return config; | ||
}, | ||
}, | ||
], | ||
[ | ||
withSass, | ||
{ | ||
cssModules: true, | ||
cssLoaderOptions: { | ||
importLoaders: 1, | ||
localIdentName: '[local]___[hash:base64:5]', | ||
localIdentName: "[local]___[hash:base64:5]", | ||
}, | ||
cssModules: false, | ||
// transpileModules: ["@snoutyfriend/storybook/scss/all.scss"], | ||
}, | ||
], | ||
]); |
Oops, something went wrong.