Skip to content

Commit

Permalink
2.4.2 - Fix to bundle release version files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
caiobiodere committed Jun 16, 2019
1 parent 73289b9 commit 0f76982
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-template-framework7-vue-webpack",
"version": "2.4.1",
"version": "2.4.2",
"description": "Cordova template with framework7, vue 2 and webpack 2.",
"main": "index.js",
"scripts": {
Expand Down
13 changes: 8 additions & 5 deletions template_src/config/webpack.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.common');

const CordovaHtmlOutputPlugin = require('../webpack/plugins/CordovaHtmlOutputPlugin.js');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const CleanPlugin = require('clean-webpack-plugin');
Expand All @@ -11,18 +12,20 @@ module.exports = function() {
module: {
rules: [
{
test: /\.css$/, loader: ['style-loader', 'css-loader']
test: /\.css$/,
loader: ['style-loader', 'css-loader']
}
]
},
plugins: [
new CordovaHtmlOutputPlugin(),
new UglifyJsPlugin(),
new CleanPlugin("www", {
root: path.join(__dirname, "."),
new CleanPlugin('www', {
root: path.join(__dirname, '.'),
dry: false,
verbose: false,
exclude: ["index.html"]
exclude: ['index.html']
})
]
});
}
};
23 changes: 11 additions & 12 deletions template_src/config/webpack.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,28 @@ module.exports = function() {
module: {
rules: [
{
test: /\.css$/, loader: ['style-loader', 'css-loader']
test: /\.css$/,
loader: ['style-loader', 'css-loader']
}
]
},
plugins: [
new webpack.NamedModulesPlugin()
],
plugins: [new webpack.NamedModulesPlugin()],
devServer: {
contentBase: path.join(__dirname, "../www"),
contentBase: path.join(__dirname, '../www'),
port: devServerPort,
stats: { colors: true },
watchOptions: {
aggregateTimeout: 300,
poll: 100,
ignored: /node_modules|platforms/,
aggregateTimeout: 300,
poll: 100,
ignored: /node_modules|platforms/
},
headers: {
"Access-Control-Allow-Origin": "*"
'Access-Control-Allow-Origin': '*'
},
host: "0.0.0.0"
host: '0.0.0.0'
},
output: {
publicPath: "/"
publicPath: '/'
}
});
}
};

0 comments on commit 0f76982

Please sign in to comment.