0.1.17 • Published 7 years ago
dialog-web-component v0.1.17
Dialog Web Component
Note: This is not a Web Component
Install
npm i dialog-web-component
Setup
Webpack
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const StyleExtHtmlWebpackPlugin = require('style-ext-html-webpack-plugin')
module.exports = {
entry: [
'dialog-web-component/dist/dialog-web-component.css'
],
module: {
rules: [{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: 'css-loader'
})
}]
},
plugins: [
new HtmlWebpackPlugin({
...
}),
new ExtractTextPlugin('styles.css'),
new StyleExtHtmlWebpackPlugin()
]
}