Skip to content

Commit

Permalink
docs: Update example webpack config to not show warning about sass
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Dec 13, 2023
1 parent e2d6c30 commit 83d569f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/coin-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const options = {
buildDir: 'dist/',
serverDir: 'dist-server/',
globalStyleDir: 'style',
sassOptions: false,
};

const generateConfig = makeConfig(options);
Expand Down
2 changes: 1 addition & 1 deletion examples/github-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MatchedRoute } from '@anansi/router';
import { Layout } from 'antd';
import Boundary from 'Boundary';
import 'antd/dist/reset.css';
import 'style/main.scss';
import 'style/main.css';
import NavBar from 'navigation/NavBar';

const { Content } = Layout;
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions examples/github-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const options = {
},
globalStyleDir: 'style',
terserOptions: { keep_classnames: true },
sassOptions: false,
};

const generateConfig = makeConfig(options);
Expand Down
2 changes: 1 addition & 1 deletion examples/todo-app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import LoadingBar from 'components/LoadingBar';
import Home from 'pages/Home';
import { memo } from 'react';
import 'style/main.scss';
import 'style/main.css';

// Typically place global navigation and routing layer in here
function App() {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions examples/todo-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const options = {
template: 'index.ejs',
},
globalStyleDir: 'style',
sassOptions: false,
};

const generateConfig = makeConfig(options);
Expand Down

0 comments on commit 83d569f

Please sign in to comment.