Split dependencies into modules
This commit is contained in:
@@ -2,7 +2,6 @@ const path = require('path');
|
||||
const { SRC, DIST, ASSETS, LIB } = require('./paths');
|
||||
var webpack = require("webpack");
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const SymlinkWebpackPlugin = require('symlink-webpack-plugin');
|
||||
|
||||
@@ -78,17 +77,15 @@ module.exports = {
|
||||
new webpack.ProvidePlugin({
|
||||
$: require.resolve('jquery'),
|
||||
jQuery: require.resolve('jquery'),
|
||||
L: require.resolve('leaflet')
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: path.resolve(LIB, 'index.php'),
|
||||
chunks: ['index'],
|
||||
filename: 'index.php',
|
||||
//L: require.resolve('leaflet')
|
||||
}),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [{
|
||||
from: 'geo/',
|
||||
to: path.resolve(DIST, 'geo')
|
||||
}, {
|
||||
from: path.resolve(LIB, 'index.php'),
|
||||
to: 'index.php'
|
||||
}]
|
||||
}),
|
||||
new SymlinkWebpackPlugin({ origin: '../files/', symlink: 'files' }),
|
||||
@@ -97,6 +94,7 @@ module.exports = {
|
||||
resolve: {
|
||||
extensions: ['', '.js'],
|
||||
alias: {
|
||||
"@scripts": path.resolve(SRC, "scripts"),
|
||||
'load-image': 'blueimp-load-image/js/load-image.js',
|
||||
//'load-image-orientation': 'blueimp-load-image/js/load-image-orientation.js',
|
||||
//'load-image-scale': 'blueimp-load-image/js/load-image-scale.js',
|
||||
|
||||
Reference in New Issue
Block a user