moved npm, webpack and eslint stuff to root
This commit is contained in:
parent
98c5daebcf
commit
72da3d85e0
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@ dist*
|
||||
static/bundles/
|
||||
static/tmp/
|
||||
static/combined/
|
||||
frontend/node_modules/
|
||||
node_modules/
|
||||
*.hi
|
||||
*.o
|
||||
*.sqlite3
|
||||
|
||||
@ -6,11 +6,11 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"lint": "eslint src",
|
||||
"lint": "eslint frontend/src",
|
||||
"dev": "webpack --watch"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": { }
|
||||
"hooks": {}
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/js/**/*.js": [
|
||||
@ -66,13 +66,13 @@ module.exports = {
|
||||
|
||||
entry: {
|
||||
main: [
|
||||
path.resolve(__dirname, 'src', 'main.js'),
|
||||
path.resolve(__dirname, 'frontend/src', 'main.js'),
|
||||
],
|
||||
vendor: [
|
||||
path.resolve(__dirname, 'vendor', 'main.js'),
|
||||
path.resolve(__dirname, 'frontend/vendor', 'main.js'),
|
||||
],
|
||||
polyfills: [
|
||||
path.resolve(__dirname, 'polyfills', 'main.js'),
|
||||
path.resolve(__dirname, 'frontend/polyfills', 'main.js'),
|
||||
],
|
||||
},
|
||||
|
||||
@ -85,7 +85,7 @@ module.exports = {
|
||||
output: {
|
||||
chunkFilename: 'js/[name].[chunkname].js',
|
||||
filename: 'js/[name].js',
|
||||
path: path.resolve(__dirname, '..', 'static', 'bundles')
|
||||
path: path.resolve(__dirname, 'static', 'bundles')
|
||||
},
|
||||
|
||||
mode: 'development',
|
||||
Loading…
Reference in New Issue
Block a user