fix(next): prod css output webpack
This commit is contained in:
4
packages/next/src/webpackEntry.ts
Normal file
4
packages/next/src/webpackEntry.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export { RootLayout } from './layouts/Root/index.js'
|
||||
export { Dashboard as DashboardPage } from './views/Dashboard/index.js'
|
||||
export { Login } from './views/Login/index.js'
|
||||
export { RootPage } from './views/Root/index.js'
|
||||
@@ -8,8 +8,9 @@ import webpack from 'webpack'
|
||||
const filename = fileURLToPath(import.meta.url)
|
||||
const dirname = path.dirname(filename)
|
||||
|
||||
/** @type {import('webpack').Configuration} */
|
||||
const componentWebpackConfig = {
|
||||
entry: path.resolve(dirname, './src/index.js'),
|
||||
entry: path.resolve(dirname, './src/webpackEntry.ts'),
|
||||
externals: [
|
||||
'react',
|
||||
'react-dom',
|
||||
|
||||
Reference in New Issue
Block a user