We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. Is it possible prevent add link on compiled css files in head?
webpack config:
const path = require('path') const webpack = require('webpack') // const ExtractTextPlugin = require('extract-text-webpack-plugin') const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') const {VueLoaderPlugin} = require('vue-loader') const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const isProd = process.env.NODE_ENV === 'production' module.exports = { mode: isProd ? 'production' : 'development', entry: { 'critical': './src/assets/scss/critical.scss', 'main': './src/assets/scss/main.scss' }, devtool: isProd ? false : '#cheap-module-source-map', output: { path: path.resolve(__dirname, '../dist'), publicPath: '/dist/', filename: '[name].[chunkhash].js' }, resolve: { alias: { 'public': path.resolve(__dirname, '../public') } }, module: { noParse: /es6-promise\.js$/, // avoid webpack shimming process rules: [ { test: /\.css$/, use: [ 'vue-style-loader', 'css-loader' ], }, { test: /\.vue$/, loader: 'vue-loader', options: { compilerOptions: { preserveWhitespace: false } } }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }, { test: /\.(png|jpg|gif|svg)$/, loader: 'url-loader', options: { limit: 10000, name: '[name].[ext]?[hash]' } }, { test: /\.scss$/, use: isProd ? [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'] // ['vue-style-loader', 'css-loader', 'sass-loader'] // ExtractTextPlugin.extract({ // use: [ // { // loader: 'css-loader', // options: {minimize: true} // }, // { // loader: 'sass-loader', // options: {minimize: true} // }, // // 'sass-loader' // ], // fallback: 'vue-style-loader' // }) : ['vue-style-loader', 'css-loader', 'sass-loader'] }, { test: /\.pug$/, loader: 'pug-plain-loader' }, { test: /\.(frag|vert|glsl)$/, use: [ { loader: 'glsl-shader-loader', options: {} } ] } ] }, performance: { maxEntrypointSize: 300000, hints: isProd ? 'warning' : false }, optimization: { minimizer: [ new UglifyJsPlugin({ cache: true, parallel: true, uglifyOptions: { compress: false, ecma: 6, mangle: true }, sourceMap: true }), new OptimizeCSSAssetsPlugin({}) ] }, plugins: isProd ? [ new VueLoaderPlugin(), // new webpack.optimize.UglifyJsPlugin({ // compress: { warnings: false } // }), new webpack.optimize.ModuleConcatenationPlugin(), // new ExtractTextPlugin({ // filename: 'common.[chunkhash].css' // }) new MiniCssExtractPlugin({ // Options similar to the same options in webpackOptions.output // both options are optional filename: '[name].min.css' }) ] : [ new VueLoaderPlugin(), new FriendlyErrorsPlugin() ] }
The text was updated successfully, but these errors were encountered:
No, duplicate #370 PR welcome
Sorry, something went wrong.
No branches or pull requests
Hi. Is it possible prevent add link on compiled css files in head?
webpack config:
The text was updated successfully, but these errors were encountered: