mirror of
https://github.com/c8r/x0.git
synced 2024-09-11 13:45:52 +03:00
Move files
This commit is contained in:
parent
cc49efa7e5
commit
a1ddd164fe
13
README.md
13
README.md
@ -360,3 +360,16 @@ See the [example](https://github.com/c8r/x0/tree/master/examples/webpack-config)
|
|||||||
[react-loadable]: https://github.com/thejameskyle/react-loadable
|
[react-loadable]: https://github.com/thejameskyle/react-loadable
|
||||||
[webpack-merge]: https://github.com/survivejs/webpack-merge
|
[webpack-merge]: https://github.com/survivejs/webpack-merge
|
||||||
[webpack]: https://webpack.js.org
|
[webpack]: https://webpack.js.org
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## To Do
|
||||||
|
|
||||||
|
**REMOVE BEFORE MERGING**
|
||||||
|
|
||||||
|
- [ ] deep require context
|
||||||
|
- [ ] minimatch
|
||||||
|
- [ ] default route sorting
|
||||||
|
- [ ] markdown scope
|
||||||
|
- [ ] move client modules to src
|
||||||
|
- [ ] adjust resolve
|
||||||
|
@ -18,7 +18,7 @@ const getApp = opts => {
|
|||||||
const config = merge(baseConfig, opts.webpack)
|
const config = merge(baseConfig, opts.webpack)
|
||||||
|
|
||||||
config.mode = 'development'
|
config.mode = 'development'
|
||||||
config.entry = opts.entry || path.join(__dirname, './entry.js')
|
config.entry = opts.entry || path.join(__dirname, '../src/entry.js')
|
||||||
config.output= {
|
config.output= {
|
||||||
path: opts.tempdir,
|
path: opts.tempdir,
|
||||||
filename: 'App.js',
|
filename: 'App.js',
|
||||||
@ -191,7 +191,7 @@ module.exports = async (opts) => {
|
|||||||
if (opts.debug) {
|
if (opts.debug) {
|
||||||
config.stats = 'verbose'
|
config.stats = 'verbose'
|
||||||
}
|
}
|
||||||
config.entry = path.join(__dirname, './entry')
|
config.entry = path.join(__dirname, '../src/entry')
|
||||||
config.output = {
|
config.output = {
|
||||||
path: opts.outDir,
|
path: opts.outDir,
|
||||||
filename: 'bundle.js',
|
filename: 'bundle.js',
|
||||||
|
@ -29,7 +29,7 @@ const rules = [
|
|||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
exclude: path.resolve(__dirname, '../node_modules'),
|
exclude: path.resolve(__dirname, '../node_modules'),
|
||||||
include: path.resolve(__dirname),
|
include: path.resolve(__dirname, '..'),
|
||||||
loader: require.resolve('babel-loader'),
|
loader: require.resolve('babel-loader'),
|
||||||
options: babel
|
options: babel
|
||||||
},
|
},
|
||||||
|
@ -24,7 +24,7 @@ module.exports = async (opts) => {
|
|||||||
|
|
||||||
config.mode = 'development'
|
config.mode = 'development'
|
||||||
config.context = opts.dirname
|
config.context = opts.dirname
|
||||||
config.entry = opts.entry || path.join(__dirname, './entry')
|
config.entry = opts.entry || path.join(__dirname, '../src/entry')
|
||||||
config.output = {
|
config.output = {
|
||||||
path: path.join(process.cwd(), 'dev'),
|
path: path.join(process.cwd(), 'dev'),
|
||||||
filename: 'dev.js',
|
filename: 'dev.js',
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Main application
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { render, hydrate } from 'react-dom'
|
import { render, hydrate } from 'react-dom'
|
Loading…
Reference in New Issue
Block a user