|
|
@@ -12,13 +12,13 @@
|
|
|
const path = require('path');
|
|
|
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
-const hslPaths = require(path.join(__dirname, '../node_modules/hslayers-ng/common_paths'));
|
|
|
+const hslPaths = require(path.join(__dirname, './node_modules/hslayers-ng/common_paths'));
|
|
|
|
|
|
module.exports = {
|
|
|
- entry: { main: 'app.js' },
|
|
|
+ entry: { main: './src/app.js' },
|
|
|
output: {
|
|
|
// Path where bundled files will be output
|
|
|
- path: path.resolve(__dirname, '../static'),
|
|
|
+ path: path.resolve(__dirname, './static'),
|
|
|
// Path at which output assets will be served
|
|
|
publicPath: ''
|
|
|
},
|
|
|
@@ -27,8 +27,8 @@ module.exports = {
|
|
|
symlinks: true,
|
|
|
modules: [
|
|
|
path.join(__dirname),
|
|
|
- path.join(__dirname, '../node_modules'),
|
|
|
- path.resolve(path.join(__dirname, '../node_modules', 'hslayers-ng'))
|
|
|
+ path.join(__dirname, './node_modules'),
|
|
|
+ path.resolve(path.join(__dirname, './node_modules', 'hslayers-ng'))
|
|
|
].concat(hslPaths.paths)
|
|
|
},
|
|
|
plugins: [
|
|
|
@@ -37,7 +37,7 @@ module.exports = {
|
|
|
new HtmlWebpackPlugin({
|
|
|
// Path where the file will be generated (appended to output.path)
|
|
|
filename: 'index.html',
|
|
|
- template: 'src/index.html',
|
|
|
+ template: './src/index.html',
|
|
|
// We manually inject css and js files in our template
|
|
|
inject: false
|
|
|
// favicon: 'assets/img/favicon.ico'
|