mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
77d5f36eea
Hey @timneutkens I've updated this example a bit. - Fixed `/asserts` spelling to `/assets`. - Removed the `/assets/styles.less` as importing this caused the entire ant-design css sheet to be loaded, now only the React components imported will have their styles loaded via the babel plugin which was already configured. Resulted in dropping the CSS for this example from ~630kb to ~220kb. - Removed `index.js` as it's not needed.
13 lines
222 B
Plaintext
13 lines
222 B
Plaintext
{
|
|
"presets": ["next/babel"],
|
|
"plugins": [
|
|
["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }],
|
|
[
|
|
"import", {
|
|
"libraryName": "antd",
|
|
"style": true
|
|
}
|
|
]
|
|
]
|
|
}
|