Skip to content

Commit

Permalink
Preparing pages, controllers and services.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomislav Fabeta committed Apr 27, 2019
1 parent b1f1428 commit 6ceadb1
Show file tree
Hide file tree
Showing 21 changed files with 1,326 additions and 391 deletions.
52 changes: 28 additions & 24 deletions next.config.js
@@ -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"],
},
],
]);

0 comments on commit 6ceadb1

Please sign in to comment.