-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
5,045 additions
and
4,793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
const webpack = require('webpack') | ||
const path = require('path') | ||
const pluginVue = require('eslint-plugin-vue') | ||
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin'); | ||
|
||
module.exports = { | ||
assetsDir: 'static/assets/', | ||
|
@@ -37,8 +39,7 @@ module.exports = { | |
devServer: { | ||
port: 3005, | ||
historyApiFallback: { | ||
rewrites: [ | ||
{ | ||
rewrites: [{ | ||
from: /^\/init$/, | ||
to: '/initial.html' | ||
}, | ||
|
@@ -82,15 +83,15 @@ module.exports = { | |
} | ||
}, | ||
chainWebpack: config => { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
slavas490
Author
Contributor
|
||
config.module | ||
.rule('eslint') | ||
.use('eslint-loader') | ||
.loader('eslint-loader') | ||
.tap(options => { | ||
options.configFile = path.resolve(__dirname, '.eslintrc.js') | ||
options.fix = true | ||
return options | ||
}) | ||
// config.module | ||
// .rule('eslint') | ||
// .use('eslint-loader') | ||
// .loader('eslint-loader') | ||
// .tap(options => { | ||
// options.configFile = path.resolve(__dirname, '.eslintrc.js') | ||
// options.fix = true | ||
// return options | ||
// }) | ||
// remove vue-cli-service error output | ||
// config.plugins.delete('friendly-errors') | ||
// remove vue-cli-service's progress output | ||
|
@@ -110,6 +111,14 @@ module.exports = { | |
} | ||
|
||
config.plugins.push( | ||
new webpack.ProvidePlugin({ jQuery: 'jquery', $: 'jquery', 'window.jQuery': 'jquery' })) | ||
new webpack.ProvidePlugin({ | ||
jQuery: 'jquery', | ||
$: 'jquery', | ||
'window.jQuery': 'jquery' | ||
})) | ||
|
||
config.plugins.push([ | ||
new NodePolyfillPlugin() | ||
]) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Was this commented out on purpose?