mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 01:40:22 +00:00
extracting css
This commit is contained in:
5
.prettierrc
Normal file
5
.prettierrc
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"trailingComma": "none",
|
||||
"singleQuote": true,
|
||||
"semi": false
|
||||
}
|
||||
24
build/webpack.srr-no-css.config.js
Normal file
24
build/webpack.srr-no-css.config.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const path = require('path')
|
||||
const webpack = require('webpack')
|
||||
const merge = require('webpack-merge')
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
||||
|
||||
const base = require('./webpack.srr.config')
|
||||
|
||||
module.exports = merge(base, {
|
||||
plugins: [new ExtractTextPlugin('styles.css')],
|
||||
output: {
|
||||
filename: 'ssr.pure.js'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: ExtractTextPlugin.extract({
|
||||
fallback: 'style-loader',
|
||||
use: 'css-loader'
|
||||
})
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
@@ -19,10 +19,11 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build:client": "webpack --config ./build/webpack.client.config.js --progress --hide-modules",
|
||||
"build:server": "webpack --config ./build/webpack.server.config.js --progress --hide-modules",
|
||||
"build:srr": "webpack --config ./build/webpack.srr.config.js --progress --hide-modules",
|
||||
"build:srr-no-css": "webpack --config ./build/webpack.srr-no-css.config.js --progress --hide-modules",
|
||||
"lint": "eslint --ext .js,.vue src test/unit/specs",
|
||||
"unit": "./node_modules/karma/bin/karma start test/unit/karma.conf.js",
|
||||
"build": "npm run lint && npm run unit && npm run build:client && npm run build:server"
|
||||
"build": "npm run lint && npm run unit && npm run build:client && npm run build:srr"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
|
||||
1028
src/Modal.vue
1028
src/Modal.vue
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user