mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-12-08 20:48:46 +00:00
Updated demo
This commit is contained in:
@@ -15,13 +15,9 @@ module.exports = {
|
||||
loader: 'vue-loader',
|
||||
options: {
|
||||
loaders: {
|
||||
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
|
||||
// the "scss" and "sass" values for the lang attribute to the right configs here.
|
||||
// other preprocessors should work out of the box, no loader config like this necessary.
|
||||
'scss': 'vue-style-loader!css-loader!sass-loader',
|
||||
'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
|
||||
}
|
||||
// other vue-loader options go here
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -54,12 +50,10 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports.entry = './src/index.js'
|
||||
|
||||
module.exports.output = {
|
||||
path:'./dist',
|
||||
filename:'index.js',
|
||||
library:'VueJsToggleButton',
|
||||
library:'VueJsModal',
|
||||
libraryTarget: 'umd'
|
||||
}
|
||||
|
||||
@@ -71,10 +65,9 @@ if (process.env.NODE_ENV === 'production') {
|
||||
}
|
||||
}),
|
||||
/*new webpack.optimize.UglifyJsPlugin({
|
||||
sourceMap: true,
|
||||
compress: {
|
||||
warnings: false
|
||||
}
|
||||
sourceMap: false,
|
||||
extractComments: true,
|
||||
compress: false
|
||||
}),*/
|
||||
new webpack.LoaderOptionsPlugin({
|
||||
minimize: true
|
||||
|
||||
Reference in New Issue
Block a user