Removing jQuery altogether
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const path = require('path');
|
||||
const { SRC, DIST, ASSETS, LIB } = require('./paths');
|
||||
var webpack = require("webpack");
|
||||
const webpack = require('webpack');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const SymlinkWebpackPlugin = require('symlink-webpack-plugin');
|
||||
@@ -13,9 +13,8 @@ module.exports = {
|
||||
output: {
|
||||
path: DIST,
|
||||
filename: '[name].js',
|
||||
publicPath: './' //meaning dist/
|
||||
publicPath: '../dist/'
|
||||
},
|
||||
devtool: "inline-source-map",
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.vue$/,
|
||||
@@ -72,10 +71,6 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
$: require.resolve('jquery'),
|
||||
jQuery: require.resolve('jquery')
|
||||
}),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [/*{
|
||||
from: 'geo/',
|
||||
@@ -108,12 +103,7 @@ module.exports = {
|
||||
resolve: {
|
||||
extensions: ['', '.js'],
|
||||
alias: {
|
||||
"@scripts": path.resolve(SRC, "scripts"),
|
||||
'load-image': 'blueimp-load-image/js/load-image.js',
|
||||
'load-image-meta': 'blueimp-load-image/js/load-image-meta.js',
|
||||
'load-image-exif': 'blueimp-load-image/js/load-image-exif.js',
|
||||
'canvas-to-blob': 'blueimp-canvas-to-blob/js/canvas-to-blob.js',
|
||||
'jquery-ui/ui/widget': 'blueimp-file-upload/js/vendor/jquery.ui.widget.js'
|
||||
"@scripts": path.resolve(SRC, "scripts")
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2,5 +2,6 @@ const { merge } = require('webpack-merge')
|
||||
|
||||
module.exports = merge(require('./webpack.common.js'), {
|
||||
mode: 'development',
|
||||
devtool: 'inline-source-map',
|
||||
watch: true
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user