Commit a28d5d1b authored by Jorgen's avatar Jorgen

Modify project structure. Start from scratch and get rid of react-scripts

parent f05d8bf8
{
"presets": [
"env", "react"
],
"plugins": [
"transform-class-properties"
]
}
\ No newline at end of file
# dependencies
/node_modules
# testing
/coverage
# production
/build
/dist
# misc
.DS_Store
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -9,13 +9,25 @@
"react": "^16.4.1",
"react-bootstrap": "^0.32.1",
"react-dom": "^16.4.1",
"react-localization": "^1.0.10",
"react-scripts": "1.1.4"
"react-localization": "^1.0.10"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
"buildDev": "webpack --mode=development --devtool=source-map",
"build": "webpack --mode=production"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"css-loader": "^0.28.11",
"file-loader": "^1.1.11",
"style-loader": "^0.21.0",
"url-loader": "^1.0.1",
"webpack": "^4.15.1",
"webpack-command": "^0.4.0"
}
}
{
"short_name": "Etersoft Typos",
"name": "Etersoft Typos ReactJS client application",
"icons": [
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
'use strict';
const path = require('path');
module.exports = {
entry: './src/index.js',
context: path.resolve(__dirname),
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'etersoft-typos.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
use: {
loader: "babel-loader"
}
},
{ test: /\.css$/, loader: "style-loader!css-loader"},
{ test: /\.(png|woff|woff2|eot|ttf|svg)(\?|$)/, loader: 'url-loader?limit=100000' }
]
},
// devtool: 'source-map',
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment